mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 12:23:31 +00:00
return TRUE in ReadFile if there is nothing to read
svn path=/trunk/; revision=44099
This commit is contained in:
@@ -144,6 +144,11 @@ ReadFile(IN HANDLE hFile,
|
||||
*lpNumberOfBytesRead = 0;
|
||||
}
|
||||
|
||||
if (!nNumberOfBytesToRead)
|
||||
{
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
hFile = TranslateStdHandle(hFile);
|
||||
|
||||
if (IsConsoleHandle(hFile))
|
||||
|
||||
Reference in New Issue
Block a user