mirror of
https://github.com/OpenMW/openmw.git
synced 2025-06-21 21:41:33 +00:00
Merge branch 'lost_archives48' into 'openmw-48'
Restore 0936d716d96cd45b3efc2d1a3697614f7f96952d See merge request OpenMW/openmw!2673
This commit is contained in:
commit
41b5ddf010
1 changed files with 3 additions and 1 deletions
|
@ -48,7 +48,9 @@ namespace Platform::File {
|
||||||
const auto nativeHandle = getNativeHandle(handle);
|
const auto nativeHandle = getNativeHandle(handle);
|
||||||
const auto nativeSeekType = getNativeSeekType(type);
|
const auto nativeSeekType = getNativeSeekType(type);
|
||||||
|
|
||||||
if (SetFilePointer(nativeHandle, static_cast<LONG>(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)
|
if (auto errCode = GetLastError(); errCode != ERROR_SUCCESS)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue