ws2_32: Use the iosb to keep track of how many bytes we sent.

This commit is contained in:
Mike Kaplinskiy 2011-01-24 00:19:19 -05:00 committed by Alexandre Julliard
parent 388398bd05
commit a06144d9ca
1 changed files with 1 additions and 2 deletions

View File

@ -1807,6 +1807,7 @@ static NTSTATUS WS2_async_send(void* user, IO_STATUS_BLOCK* iosb, NTSTATUS statu
if (result >= 0)
{
status = STATUS_SUCCESS;
iosb->Information += result;
}
else if (errno == EINTR || errno == EAGAIN)
{
@ -1815,14 +1816,12 @@ static NTSTATUS WS2_async_send(void* user, IO_STATUS_BLOCK* iosb, NTSTATUS statu
else
{
status = wsaErrStatus();
result = 0;
}
break;
}
if (status != STATUS_PENDING)
{
iosb->u.Status = status;
iosb->Information = result;
*apc = ws2_async_apc;
}
return status;