Commit 4d68d005 authored by Brad King's avatar Brad King
Browse files

BUG: File comparison on windows must test the volume serial number as well as the file index.

parent 941c80a8
......@@ -577,7 +577,8 @@ bool SystemTools::SameFile(const char* file1, const char* file2)
GetFileInformationByHandle( hFile2, &fiBuf2 );
return (fiBuf1.nFileIndexHigh == fiBuf2.nFileIndexHigh &&
return (fiBuf1.dwVolumeSerialNumber == fiBuf2.dwVolumeSerialNumber &&
fiBuf1.nFileIndexHigh == fiBuf2.nFileIndexHigh &&
fiBuf1.nFileIndexLow == fiBuf2.nFileIndexLow);
struct stat fileStat1, fileStat2;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment