Replace SetFilePointerEx with SetFilePointer.

This commit is contained in:
Armin Novak 2016-03-17 09:34:24 +01:00
parent f45be8dab0
commit 43b13ffcd2

View File

@ -595,7 +595,7 @@ BOOL drive_file_set_information(DRIVE_FILE* file, UINT32 FsInformationClass, UIN
return FALSE;
}
liSize.QuadPart = size;
if (SetFilePointerEx(hFd, liSize, NULL, FILE_BEGIN) == 0)
if (SetFilePointer(hFd, liSize.LowPart, &liSize.HighPart, FILE_BEGIN) == 0)
{
WLog_ERR(TAG, "Unable to truncate %s to %d", file->fullpath, size);
CloseHandle(hFd);