summaryrefslogtreecommitdiff
path: root/FreeFileSync/Source/afs/native.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'FreeFileSync/Source/afs/native.cpp')
-rw-r--r--FreeFileSync/Source/afs/native.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/FreeFileSync/Source/afs/native.cpp b/FreeFileSync/Source/afs/native.cpp
index fd6fa928..592a9e4b 100644
--- a/FreeFileSync/Source/afs/native.cpp
+++ b/FreeFileSync/Source/afs/native.cpp
@@ -379,6 +379,9 @@ struct OutputStreamNative : public AFS::OutputStreamImpl
result.filePrint = getNativeFileInfo(fileOut_).filePrint; //throw FileError
fileOut_.close(); //throw FileError
+ //output finalized => no more exceptions from here on!
+ //--------------------------------------------------------------------
+
/* is setting modtime after closing the file handle a pessimization?
no, needed for functional correctness, see file_access.cpp::copyNewFile() for macOS/Linux
even required on Windows: https://freefilesync.org/forum/viewtopic.php?t=10781 */
bgstack15