msvcrt: Correctly set EOF flag in fread().
commit72017cc9ab31382b8d47005c5e843b635e96d208
authorPeter Beutner <p.beutner@gmx.net>
Fri, 17 Feb 2006 16:38:03 +0000 (17 17:38 +0100)
committerAlexandre Julliard <julliard@winehq.org>
Fri, 17 Feb 2006 16:38:03 +0000 (17 17:38 +0100)
tree335a2621691d40273af70b3120add860d159061b
parentb786ea588c88f2ebef8e1fb84d5f00c5ad539988
msvcrt: Correctly set EOF flag in fread().
Setting the EOF flag only if _read() returns zero is not enough as we
could also read something AND hit the end of file.
_read() already sets another internal EOF flag, so just use this too.
Removing todo_wine from the test case.
dlls/msvcrt/file.c
dlls/msvcrt/tests/file.c