summaryrefslogtreecommitdiff
path: root/synchronization.cpp
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 17:24:09 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 17:24:09 +0200
commit110fc5dee14fc7988f631a158e50d283446aba7a (patch)
tree7c19dfd3bdb8c4636409ec80a38c70499ac006db /synchronization.cpp
parent5.14 (diff)
downloadFreeFileSync-110fc5dee14fc7988f631a158e50d283446aba7a.tar.gz
FreeFileSync-110fc5dee14fc7988f631a158e50d283446aba7a.tar.bz2
FreeFileSync-110fc5dee14fc7988f631a158e50d283446aba7a.zip
5.15
Diffstat (limited to 'synchronization.cpp')
-rw-r--r--synchronization.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/synchronization.cpp b/synchronization.cpp
index 0c04e68f..91d11c04 100644
--- a/synchronization.cpp
+++ b/synchronization.cpp
@@ -522,6 +522,7 @@ Zstring DeletionHandling::getOrCreateRecyclerTempDirPf() //throw FileError
}
#endif
+
void DeletionHandling::tryCleanup(bool allowUserCallback) //throw FileError
{
if (!cleanedUp)
@@ -563,6 +564,7 @@ void DeletionHandling::tryCleanup(bool allowUserCallback) //throw FileError
}
}
+
namespace
{
template <class Function>
@@ -2429,7 +2431,12 @@ FileAttrib SynchronizeFolderPair::copyFileUpdatingTo(const FileMapping& fileObj,
try
{
//contains prefix: E.g. "\\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy1\Program Files\FFS\sample.dat"
- source = shadowCopyHandler_->makeShadowCopy(source); //throw FileError
+ source = shadowCopyHandler_->makeShadowCopy(source, //throw FileError
+ [&](const Zstring& volumeName)
+ {
+ procCallback_.reportStatus(replaceCpy(_("Creating Volume Shadow Copy for %x..."), L"%x", fmtFileName(volumeName)));
+ procCallback_.forceUiRefresh();
+ });
}
catch (const FileError& e2)
{
bgstack15