diff --git a/components/platform/file.win32.cpp b/components/platform/file.win32.cpp index a2ba86a4ef..dd62f9980c 100644 --- a/components/platform/file.win32.cpp +++ b/components/platform/file.win32.cpp @@ -48,7 +48,9 @@ namespace Platform::File { const auto nativeHandle = getNativeHandle(handle); const auto nativeSeekType = getNativeSeekType(type); - if (SetFilePointer(nativeHandle, static_cast(position), nullptr, nativeSeekType) == INVALID_SET_FILE_POINTER) + LARGE_INTEGER li; + li.QuadPart = position; + if (!SetFilePointerEx(nativeHandle, li, nullptr, nativeSeekType)) { if (auto errCode = GetLastError(); errCode != ERROR_SUCCESS) {