msvcrt: Fix EOF behavior on read from pipe or console.
commit316869b273ce8bbed968d6380c1b89f07187090a
authorDan Kegel <dank@kegel.com>
Sat, 9 Feb 2008 16:27:35 +0000 (9 08:27 -0800)
committerAlexandre Julliard <julliard@winehq.org>
Tue, 12 Feb 2008 21:35:20 +0000 (12 22:35 +0100)
tree464c2c4d2735eb332d430e3d7df9f91c27665dc4
parent85703790fd1a4032f6ce94d62b78e0e9e0b5e6b5
msvcrt: Fix EOF behavior on read from pipe or console.

The canonical way to detect EOF on read is when you request more than
zero bytes, but zero bytes come back.  Switching to this method seems
to handle a few problem cases better.  Also handle ERROR_BROKEN_PIPE
properly just in case.
dlls/msvcrt/file.c
dlls/msvcrt/tests/file.c