Commits

Anonymous committed 96dad46

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

  • Participants
  • Parent commits 5fc47cb
  • Tags ITK-VV-2-0

Comments (0)

Files changed (1)

File GCC_XML/KWSys/SystemTools.cxx

    GetFileInformationByHandle( hFile2, &fiBuf2 );
    CloseHandle(hFile1);
    CloseHandle(hFile2);
-   return (fiBuf1.nFileIndexHigh == fiBuf2.nFileIndexHigh &&
+   return (fiBuf1.dwVolumeSerialNumber == fiBuf2.dwVolumeSerialNumber &&
+           fiBuf1.nFileIndexHigh == fiBuf2.nFileIndexHigh &&
            fiBuf1.nFileIndexLow == fiBuf2.nFileIndexLow);
 #else
   struct stat fileStat1, fileStat2;