kernel32: stop CopyFile from overwriting a file with itself
Alexandre Julliard
julliard at winehq.org
Wed Jun 16 04:42:26 CDT 2010
Damjan Jovanovic <damjan.jov at gmail.com> writes:
> + if (h2 != INVALID_HANDLE_VALUE)
> + {
> + BY_HANDLE_FILE_INFORMATION info2;
> + if (GetFileInformationByHandle( h2, &info2 ))
> + {
> + if (info.dwVolumeSerialNumber == info2.dwVolumeSerialNumber &&
> + info.nFileIndexLow == info2.nFileIndexLow &&
> + info.nFileIndexHigh == info2.nFileIndexHigh)
The volume serial number is not the appropriate check.
--
Alexandre Julliard
julliard at winehq.org
More information about the wine-devel
mailing list