Author: cgutman
Date: Mon Aug 9 15:42:51 2010
New Revision: 48491
URL: http://svn.reactos.org/svn/reactos?rev=48491&view=rev
Log:
[WS2_32]
- Check the return value of WSPSelect instead of the error number because the error number doesn't have to be initialized if the function doesn't return SOCKET_ERROR
Modified:
trunk/reactos/dll/win32/ws2_32/misc/dllmain.c
Modified: trunk/reactos/dll/win32/ws2_32/misc/dllmain.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/ws2_32/misc/dllm…
==============================================================================
--- trunk/reactos/dll/win32/ws2_32/misc/dllmain.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/ws2_32/misc/dllmain.c [iso-8859-1] Mon Aug 9 15:42:51 2010
@@ -459,7 +459,7 @@
DereferenceProviderByPointer(Provider);
- if (Errno != NO_ERROR)
+ if (Count == SOCKET_ERROR)
{
WSASetLastError(Errno);
return SOCKET_ERROR;
Author: cgutman
Date: Sun Aug 8 16:36:48 2010
New Revision: 48489
URL: http://svn.reactos.org/svn/reactos?rev=48489&view=rev
Log:
[MSWSOCK]
- Add a hack to set the connectionless flag for datagram and raw sockets (the previous msafd has the same hack)
- The DHCP service can send and receive packets now
Modified:
branches/aicom-network-branch/dll/win32/mswsock/msafd/socket.c
Modified: branches/aicom-network-branch/dll/win32/mswsock/msafd/socket.c
URL: http://svn.reactos.org/svn/reactos/branches/aicom-network-branch/dll/win32/…
==============================================================================
--- branches/aicom-network-branch/dll/win32/mswsock/msafd/socket.c [iso-8859-1] (original)
+++ branches/aicom-network-branch/dll/win32/mswsock/msafd/socket.c [iso-8859-1] Sun Aug 8 16:36:48 2010
@@ -693,6 +693,12 @@
ServiceFlags = lpProtocolInfo->dwServiceFlags1;
ProviderFlags = lpProtocolInfo->dwProviderFlags;
ProviderId = lpProtocolInfo->ProviderId;
+
+ /* HACK: We don't set this flag properly ATM */
+ if(SocketType == SOCK_DGRAM || SocketType == SOCK_RAW)
+ {
+ ServiceFlags |= XP1_CONNECTIONLESS;
+ }
/* Create the actual socket */
ErrorCode = SockSocket(AddressFamily,