Commit f520dec3 authored by Aric Stewart's avatar Aric Stewart Committed by Alexandre Julliard

ws2_32: async_send with no buffers does not need to do any work.

parent 34efca05
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment