ws2_32: test for ReadFileEx return value

Ambroz Bizjak ambro at
Fri Jul 18 19:22:45 CDT 2008

ReadFileEx should return a success when input is pending. Currently it
returns a failure and ERROR_IO_PENDING, contrary to specs on MSDN and
contrary to Windows. Affected are at least sockets, and also mailslots if
my previous mailslot fix is applied (otherwise async doesn't work anyway).

This is a test that binds a UDP socket and calls ReadFileEx; in Windows it
succeeds, in Wine it fails with ERROR_IO_PENDING.
 dlls/ws2_32/tests/  |    3 +-
 dlls/ws2_32/tests/readfileex.c |   61
 2 files changed, 63 insertions(+), 1 deletions(-)
 create mode 100644 dlls/ws2_32/tests/readfileex.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 1b9a58dadbd41fdae305bb6dfdcd0df0e8174ef3.diff
Type: text/x-patch
Size: 2410 bytes
Desc: not available
Url : 

More information about the wine-patches mailing list