return TRUE in ReadFile if there is nothing to read

svn path=/trunk/; revision=44099
This commit is contained in:
Christoph von Wittich 2009-11-11 08:29:08 +00:00
parent 4574bb5be8
commit 008929cd36

View file

@ -144,6 +144,11 @@ ReadFile(IN HANDLE hFile,
*lpNumberOfBytesRead = 0;
}
if (!nNumberOfBytesToRead)
{
return TRUE;
}
hFile = TranslateStdHandle(hFile);
if (IsConsoleHandle(hFile))