msvcrt: When operating on a closed pipe, read() should return 0, not -1.
commitcf218621fd2d5f4c8750451ca57ef7672cdc109b
authorFrancois Gouget <fgouget@codeweavers.com>
Mon, 21 May 2007 14:04:48 +0000 (21 16:04 +0200)
committerAlexandre Julliard <julliard@winehq.org>
Tue, 22 May 2007 10:01:35 +0000 (22 12:01 +0200)
tree3c8a40915d42d12a33ccc866118a1f07b5468838
parent784693bb5a71478de81c6960f51e989a9d35125c
msvcrt: When operating on a closed pipe, read() should return 0, not -1.

Add tests to make sure read() and fread() work right on closed pipes.
dlls/msvcrt/file.c
dlls/msvcrt/tests/file.c