[msvcrt] fix fstat's handling of pipes and char devices

Damjan Jovanovic damjan.jov at gmail.com
Fri Feb 16 01:19:34 CST 2007

This allows Java 1.4.1's jdb.exe to run without crashing when any
button is pressed.

* fixed 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

Damjan Jovanovic
-------------- next part --------------
A non-text attachment was scrubbed...
Name: stat_fix.diff
Type: text/x-patch
Size: 5568 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20070216/eb4269a0/stat_fix.bin

More information about the wine-patches mailing list