Author: cgutman
Date: Sun Jun 12 17:38:16 2011
New Revision: 52198
URL:
http://svn.reactos.org/svn/reactos?rev=52198&view=rev
Log:
[MSAFD]
- Reenable the FD_OOB async event after a call to WSPRecvFrom which received OOB data
- Remove a useless check
Modified:
trunk/reactos/dll/win32/msafd/misc/sndrcv.c
Modified: trunk/reactos/dll/win32/msafd/misc/sndrcv.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/msafd/misc/sndrc…
==============================================================================
--- trunk/reactos/dll/win32/msafd/misc/sndrcv.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/msafd/misc/sndrcv.c [iso-8859-1] Sun Jun 12 17:38:16 2011
@@ -388,7 +388,14 @@
}
/* 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 @@
HeapFree(GlobalHeap, 0, BindAddress);
}
- if (Status != STATUS_PENDING)
- SockReenableAsyncSelectEvent(Socket, FD_WRITE);
+ SockReenableAsyncSelectEvent(Socket, FD_WRITE);
return MsafdReturnWithErrno(Status, lpErrno, IOSB->Information,
lpNumberOfBytesSent);
}