From 43b13ffcd25d57e4aed55a0b7357510a92b19f9f Mon Sep 17 00:00:00 2001 From: Armin Novak Date: Thu, 17 Mar 2016 09:34:24 +0100 Subject: [PATCH] Replace SetFilePointerEx with SetFilePointer. --- channels/drive/client/drive_file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/channels/drive/client/drive_file.c b/channels/drive/client/drive_file.c index f1ad8bf..128e8ba 100644 --- a/channels/drive/client/drive_file.c +++ b/channels/drive/client/drive_file.c @@ -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); -- 2.7.4