diff --git a/components/platform/file.win32.cpp b/components/platform/file.win32.cpp index 639a7f3643..efcb233fc0 100644 --- a/components/platform/file.win32.cpp +++ b/components/platform/file.win32.cpp @@ -51,8 +51,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 = static_cast(position); + if (!SetFilePointerEx(nativeHandle, li, nullptr, nativeSeekType)) { if (auto errCode = GetLastError(); errCode != ERROR_SUCCESS) {