diff -r -u -w --strip-trailing-cr zlib-1.2.8.original/contrib/minizip/iowin32.c zlib-1.2.8/contrib/minizip/iowin32.c --- zlib-1.2.8.original/contrib/minizip/iowin32.c 2016-05-09 16:07:49.395405100 +0200 +++ zlib-1.2.8/contrib/minizip/iowin32.c 2016-05-09 16:07:47.271034100 +0200 @@ -26,11 +26,9 @@ #endif -#if defined(WINAPI_FAMILY_PARTITION) && (!(defined(IOWIN32_USING_WINRT_API))) -#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) +#if _WIN32_WINNT >= 0x0602 #define IOWIN32_USING_WINRT_API 1 #endif -#endif voidpf ZCALLBACK win32_open_file_func OF((voidpf opaque, const char* filename, int mode)); uLong ZCALLBACK win32_read_file_func OF((voidpf opaque, voidpf stream, void* buf, uLong size)); @@ -243,7 +241,7 @@ return SetFilePointerEx(hFile, pos, newPos, dwMoveMethod); #else LONG lHigh = pos.HighPart; - DWORD dwNewPos = SetFilePointer(hFile, pos.LowPart, &lHigh, FILE_CURRENT); + DWORD dwNewPos = SetFilePointer(hFile, pos.LowPart, &lHigh, dwMoveMethod); BOOL fOk = TRUE; if (dwNewPos == 0xFFFFFFFF) if (GetLastError() != NO_ERROR) @@ -370,7 +368,7 @@ { LARGE_INTEGER pos; pos.QuadPart = offset; - if (!MySetFilePointerEx(hFile, pos, NULL, FILE_CURRENT)) + if (!MySetFilePointerEx(hFile, pos, NULL, dwMoveMethod)) { DWORD dwErr = GetLastError(); ((WIN32FILE_IOWIN*)stream) -> error=(int)dwErr;