- 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:
Cameron Gutman 2011-07-07 20:16:28 +00:00
parent 6a6e263c86
commit 2ee824a900

View file

@ -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)