Aric Stewart : ws2_32: async_send with no buffers does not need to do any work.
Alexandre Julliard
julliard at winehq.org
Mon Mar 7 12:22:43 CST 2011
Module: wine
Branch: master
Commit: f520dec3e1fee260f42f4eb28d033d7b177f94d9
URL: http://source.winehq.org/git/wine.git/?a=commit;h=f520dec3e1fee260f42f4eb28d033d7b177f94d9
Author: Aric Stewart <aric at codeweavers.com>
Date: Fri Mar 4 12:09:44 2011 -0600
ws2_32: async_send with no buffers does not need to do any work.
---
dlls/ws2_32/socket.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/dlls/ws2_32/socket.c b/dlls/ws2_32/socket.c
index f74fd36..1993419 100644
--- a/dlls/ws2_32/socket.c
+++ b/dlls/ws2_32/socket.c
@@ -1797,6 +1797,12 @@ static NTSTATUS WS2_async_send(void* user, IO_STATUS_BLOCK* iosb, NTSTATUS statu
switch (status)
{
case STATUS_ALERTED:
+ if ( wsa->n_iovecs <= wsa->first_iovec )
+ {
+ /* Nothing to do */
+ status = STATUS_SUCCESS;
+ break;
+ }
if ((status = wine_server_handle_to_fd( wsa->hSocket, FILE_WRITE_DATA, &fd, NULL ) ))
break;
More information about the wine-cvs
mailing list