MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / MySetFilePointerEx

Function MySetFilePointerEx

extlibs/minizip/src/iowin32.c:241–259  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

239}
240
241static BOOL MySetFilePointerEx(HANDLE hFile, LARGE_INTEGER pos, LARGE_INTEGER* newPos, DWORD dwMoveMethod)
242{
243#ifdef IOWIN32_USING_WINRT_API
244 return SetFilePointerEx(hFile, pos, newPos, dwMoveMethod);
245#else
246 LONG lHigh = pos.HighPart;
247 DWORD dwNewPos = SetFilePointer(hFile, pos.LowPart, &lHigh, dwMoveMethod);
248 BOOL fOk = TRUE;
249 if (dwNewPos == 0xFFFFFFFF)
250 if (GetLastError() != NO_ERROR)
251 fOk = FALSE;
252 if ((newPos != NULL) && (fOk))
253 {
254 newPos->LowPart = dwNewPos;
255 newPos->HighPart = lHigh;
256 }
257 return fOk;
258#endif
259}
260
261long ZCALLBACK win32_tell_file_func(voidpf opaque, voidpf stream)
262{

Callers 4

win32_tell_file_funcFunction · 0.85
win32_tell64_file_funcFunction · 0.85
win32_seek_file_funcFunction · 0.85
win32_seek64_file_funcFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected