diff options
author | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:19:49 +0200 |
---|---|---|
committer | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:19:49 +0200 |
commit | c8e0e909b4a8d18319fc65434a10dc446434817c (patch) | |
tree | eee91e7d2ce229dd043811eae8f1e2bd78061916 /lib/binary.cpp | |
parent | 5.2 (diff) | |
download | FreeFileSync-c8e0e909b4a8d18319fc65434a10dc446434817c.tar.gz FreeFileSync-c8e0e909b4a8d18319fc65434a10dc446434817c.tar.bz2 FreeFileSync-c8e0e909b4a8d18319fc65434a10dc446434817c.zip |
5.3
Diffstat (limited to 'lib/binary.cpp')
-rw-r--r-- | lib/binary.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/binary.cpp b/lib/binary.cpp index 1da93ee6..c01bb4d2 100644 --- a/lib/binary.cpp +++ b/lib/binary.cpp @@ -113,12 +113,12 @@ bool zen::filesHaveSameContent(const Zstring& filename1, const Zstring& filename if (length1 != length2 || ::memcmp(&memory1[0], &memory2[0], length1) != 0) return false; - bytesCompared += length1 * 2; + bytesCompared += length1; callback.updateCompareStatus(bytesCompared); //send progress updates } while (!file1.eof()); - if (!file2.eof()) //highly unlikely, but theoretically possible! (but then again, not in this context where both files have same size...) + if (!file2.eof()) //highly unlikely, but possible! (but then again, not in this context where both files have same size...) return false; return true; |