mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 16:36:33 +00:00
[MSAFD]
- Let WSPRecv handle WSPRecvFrom on a non-datagram socket (mswsock_new does this) - Fixes recvfrom on connection-oriented sockets svn path=/trunk/; revision=52553
This commit is contained in:
parent
14f58265d2
commit
6f052257ab
1 changed files with 14 additions and 0 deletions
|
@ -280,6 +280,20 @@ WSPRecvFrom(SOCKET Handle,
|
||||||
*lpErrno = WSAENOTSOCK;
|
*lpErrno = WSAENOTSOCK;
|
||||||
return SOCKET_ERROR;
|
return SOCKET_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!(Socket->SharedData.ServiceFlags1 & XP1_CONNECTIONLESS))
|
||||||
|
{
|
||||||
|
/* Call WSPRecv for a non-datagram socket */
|
||||||
|
return WSPRecv(Handle,
|
||||||
|
lpBuffers,
|
||||||
|
dwBufferCount,
|
||||||
|
lpNumberOfBytesRead,
|
||||||
|
ReceiveFlags,
|
||||||
|
lpOverlapped,
|
||||||
|
lpCompletionRoutine,
|
||||||
|
lpThreadId,
|
||||||
|
lpErrno);
|
||||||
|
}
|
||||||
|
|
||||||
Status = NtCreateEvent( &SockEvent, GENERIC_READ | GENERIC_WRITE,
|
Status = NtCreateEvent( &SockEvent, GENERIC_READ | GENERIC_WRITE,
|
||||||
NULL, 1, FALSE );
|
NULL, 1, FALSE );
|
||||||
|
|
Loading…
Reference in a new issue