msvcrt: Fix fstat's handling of pipes and char devices.
commit2705d7887692ff3019c7a4b0cf9b7812b10763eb
authorDamjan Jovanovic <damjan.jov@gmail.com>
Fri, 16 Feb 2007 07:19:34 +0000 (16 09:19 +0200)
committerAlexandre Julliard <julliard@winehq.org>
Fri, 16 Feb 2007 12:13:37 +0000 (16 13:13 +0100)
tree2c7ad0c6120ebca307d45534a8dc41953b5c17d8
parentfc5b795f7c544e1dff850174ebf69c8dba458549
msvcrt: Fix fstat's handling of pipes and char devices.

For pipes/char devices, st_dev and st_rdev should be the fd, st_nlink
is always 1, and st_mode is S_IFIFO and S_IFCHR respectively.
Added tests to prove the new behaviour right.
dlls/msvcrt/file.c
dlls/msvcrt/tests/file.c