http://bugs.winehq.org/show_bug.cgi?id=10056
--- Comment #5 from Adrian Cox adrian@humboldt.co.uk 2008-04-11 05:45:39 --- Created an attachment (id=12063) --> (http://bugs.winehq.org/attachment.cgi?id=12063) Test case that demonstrates difference between Wine and Windows
This small program is a test case that demonstrates the behaviour difference between Wine and Windows. On Windows the serial timeout is honoured, and the ReadFile call returns success, with zero bytes read, once the timeout expires.
On unpatched wine, the ReadFile call returns immediately with ERROR_BROKEN_PIPE.
Wine patched with my suggested fix behaves as Windows.