Module: wine Branch: stable Commit: bf9cffedf60fef748e22d58d0ec90c52fd2dfb66 URL: http://source.winehq.org/git/wine.git/?a=commit;h=bf9cffedf60fef748e22d58d0e...
Author: Aric Stewart aric@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. (cherry picked from commit f520dec3e1fee260f42f4eb28d033d7b177f94d9)
---
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 8221e72..ec1641a 100644 --- a/dlls/ws2_32/socket.c +++ b/dlls/ws2_32/socket.c @@ -1557,6 +1557,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;