Author: cgutman
Date: Thu Jul 7 20:16:28 2011
New Revision: 52560
URL:
http://svn.reactos.org/svn/reactos?rev=52560&view=rev
Log:
[MSAFD]
- Let WSPSend handle WSPSendTo on a non-datagram socket (mswsock_new does this)
- Fixes sendto on connection-oriented sockets
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] Thu Jul 7 20:16:28 2011
@@ -573,6 +573,20 @@
*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)