mirror of
https://github.com/reactos/reactos.git
synced 2025-04-29 10:39:07 +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;
|
*lpNumberOfBytesRead = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!nNumberOfBytesToRead)
|
||||||
|
{
|
||||||
|
return TRUE;
|
||||||
|
}
|
||||||
|
|
||||||
hFile = TranslateStdHandle(hFile);
|
hFile = TranslateStdHandle(hFile);
|
||||||
|
|
||||||
if (IsConsoleHandle(hFile))
|
if (IsConsoleHandle(hFile))
|
||||||
|
|
Loading…
Reference in a new issue