mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 17:05:46 +00:00
return TRUE in ReadFile if there is nothing to read
svn path=/trunk/; revision=44099
This commit is contained in:
parent
4574bb5be8
commit
008929cd36
1 changed files with 5 additions and 0 deletions
|
@ -144,6 +144,11 @@ ReadFile(IN HANDLE hFile,
|
|||
*lpNumberOfBytesRead = 0;
|
||||
}
|
||||
|
||||
if (!nNumberOfBytesToRead)
|
||||
{
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
hFile = TranslateStdHandle(hFile);
|
||||
|
||||
if (IsConsoleHandle(hFile))
|
||||
|
|
Loading…
Reference in a new issue