Index: source/lib/sysdep/os/win/wposix/wfilesystem.cpp =================================================================== --- source/lib/sysdep/os/win/wposix/wfilesystem.cpp +++ source/lib/sysdep/os/win/wposix/wfilesystem.cpp @@ -285,7 +285,7 @@ ENSURE(hFile != INVALID_HANDLE_VALUE); LARGE_INTEGER ofs; ofs.QuadPart = length; WARN_IF_FALSE(SetFilePointerEx(hFile, ofs, 0, FILE_BEGIN)); - WARN_IF_FALSE(SetEndOfFile(hFile)); + WARN_IF_ERR(SetEndOfFile(hFile)); WARN_IF_FALSE(CloseHandle(hFile)); return 0; }