Restore 0936d716d96cd45b3efc2d1a3697614f7f96952d

7220-lua-add-a-general-purpose-lexical-parser
Evil Eye 1 year ago
parent 613453c799
commit 571e11cd42

@ -51,8 +51,9 @@ namespace Platform::File
const auto nativeHandle = getNativeHandle(handle);
const auto nativeSeekType = getNativeSeekType(type);
if (SetFilePointer(nativeHandle, static_cast<LONG>(position), nullptr, nativeSeekType)
== INVALID_SET_FILE_POINTER)
LARGE_INTEGER li;
li.QuadPart = static_cast<LONGLONG>(position);
if (!SetFilePointerEx(nativeHandle, li, nullptr, nativeSeekType))
{
if (auto errCode = GetLastError(); errCode != ERROR_SUCCESS)
{

Loading…
Cancel
Save