mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 08:25:03 +00:00
[MSAFD]
- Let WSPSend handle WSPSendTo on a non-datagram socket (mswsock_new does this) - Fixes sendto on connection-oriented sockets svn path=/trunk/; revision=52560
This commit is contained in:
parent
6a6e263c86
commit
2ee824a900
1 changed files with 14 additions and 0 deletions
|
@ -573,6 +573,20 @@ WSPSendTo(SOCKET Handle,
|
|||
*lpErrno = WSAENOTSOCK;
|
||||
return SOCKET_ERROR;
|
||||
}
|
||||
|
||||
if (!(Socket->SharedData.ServiceFlags1 & XP1_CONNECTIONLESS))
|
||||
{
|
||||
/* Use WSPSend for connection-oriented sockets */
|
||||
return WSPSend(Handle,
|
||||
lpBuffers,
|
||||
dwBufferCount,
|
||||
lpNumberOfBytesSent,
|
||||
iFlags,
|
||||
lpOverlapped,
|
||||
lpCompletionRoutine,
|
||||
lpThreadId,
|
||||
lpErrno);
|
||||
}
|
||||
|
||||
/* Bind us First */
|
||||
if (Socket->SharedData.State == SocketOpen)
|
||||
|
|
Loading…
Reference in a new issue