mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 14:05:42 +00:00
[MSAFD]
- Reenable the FD_OOB async event after a call to WSPRecvFrom which received OOB data - Remove a useless check svn path=/trunk/; revision=52198
This commit is contained in:
parent
7cc02537dd
commit
11ed2398f0
1 changed files with 9 additions and 3 deletions
|
@ -388,7 +388,14 @@ WSPRecvFrom(SOCKET Handle,
|
|||
}
|
||||
|
||||
/* Re-enable Async Event */
|
||||
SockReenableAsyncSelectEvent(Socket, FD_READ);
|
||||
if (*ReceiveFlags & MSG_OOB)
|
||||
{
|
||||
SockReenableAsyncSelectEvent(Socket, FD_OOB);
|
||||
}
|
||||
else
|
||||
{
|
||||
SockReenableAsyncSelectEvent(Socket, FD_READ);
|
||||
}
|
||||
|
||||
return MsafdReturnWithErrno ( Status, lpErrno, IOSB->Information, lpNumberOfBytesRead );
|
||||
}
|
||||
|
@ -667,8 +674,7 @@ WSPSendTo(SOCKET Handle,
|
|||
HeapFree(GlobalHeap, 0, BindAddress);
|
||||
}
|
||||
|
||||
if (Status != STATUS_PENDING)
|
||||
SockReenableAsyncSelectEvent(Socket, FD_WRITE);
|
||||
SockReenableAsyncSelectEvent(Socket, FD_WRITE);
|
||||
|
||||
return MsafdReturnWithErrno(Status, lpErrno, IOSB->Information, lpNumberOfBytesSent);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue