http://bugs.winehq.org/show_bug.cgi?id=9989
--- Comment #10 from Yuriy Tkachenko yurtk@mail15.com 2008-03-07 13:47:19 --- This patch has been rejected by Alexandre Julliard. He answered: "This is wrong, it will make all sockets non-overlapped." However, it works fine for me. :)
diff --git a/dlls/ws2_32/socket.c b/dlls/ws2_32/socket.c index 24a4a76..3697746 100644 --- a/dlls/ws2_32/socket.c +++ b/dlls/ws2_32/socket.c @@ -2662,7 +2662,8 @@ INT WINAPI WSASendTo( SOCKET s, LPWSABUF lpBuffers, DWORD dwBufferCount, goto error; }
- if ((lpOverlapped || lpCompletionRoutine) && + /* If no options specified, the socket assumed to be non-overlapped*/ + if (options && (lpOverlapped || lpCompletionRoutine) && !(options & (FILE_SYNCHRONOUS_IO_ALERT | FILE_SYNCHRONOUS_IO_NONALERT))) { IO_STATUS_BLOCK *iosb;