Changes default socket behavior for WSASendTo function from overlapped to
superuser (none)
superuser at yt-u.
Tue Oct 30 10:42:10 CDT 2007
non-overlapped. It fixes Wine Bugzilla bug 9989.
---
dlls/ws2_32/socket.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
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;
--
1.5.2.5
--=_2nrqiwom0864--
More information about the wine-patches
mailing list