mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Fix RandomAccessFile read
This commit is contained in:
@@ -414,6 +414,8 @@ Result RandomAccessFile::nativeRead (void* buffer, ByteCount numBytes, ByteCount
|
||||
if (! ReadFile ((HANDLE) fileHandle, buffer, (DWORD) numBytes, &actualNum, 0))
|
||||
result = WindowsFileHelpers::getResultForLastError();
|
||||
|
||||
currentPosition += actualNum;
|
||||
|
||||
if (pActualAmount != nullptr)
|
||||
*pActualAmount = actualNum;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user