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

This commit is contained in:
Aric Stewart 2011-03-04 12:09:44 -06:00 committed by Alexandre Julliard
parent 34efca05c9
commit f520dec3e1
1 changed files with 6 additions and 0 deletions

View File

@ -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;