forked from boostorg/beast
Fix RandomAccessFile read
This commit is contained in:
1 parent
a3af6404b0
commit
ed392300b4
1 file changed
+2
@@ -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