mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 04:13:34 +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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user