ReadFile should return 0 to lpNumberOfBytesRead if NtReadFile returned STATUS_END_OF_FILE for synchronous operations

svn path=/trunk/; revision=15067
This commit is contained in:
Thomas Bluemel
2005-05-07 00:21:06 +00:00
parent 3d44032203
commit c38185a947
+1 -1
View File
@@ -221,7 +221,7 @@ ReadFile(IN HANDLE hFile,
/* lpNumberOfBytesRead must not be NULL here, in fact Win doesn't
check that case either and crashes (only after the operation
completed) */
*lpNumberOfBytesRead = Iosb.Information;
*lpNumberOfBytesRead = 0;
return TRUE;
}