Author: cwittich
Date: Tue Dec 30 07:37:31 2008
New Revision: 38470
URL:
http://svn.reactos.org/svn/reactos?rev=38470&view=rev
Log:
fix a winetest failure
Modified:
trunk/reactos/dll/win32/ws2_32/misc/stubs.c
Modified: trunk/reactos/dll/win32/ws2_32/misc/stubs.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/ws2_32/misc/stub…
==============================================================================
--- trunk/reactos/dll/win32/ws2_32/misc/stubs.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/ws2_32/misc/stubs.c [iso-8859-1] Tue Dec 30 07:37:31 2008
@@ -160,6 +160,12 @@
if (!WSAINITIALIZED)
{
WSASetLastError(WSANOTINITIALISED);
+ return SOCKET_ERROR;
+ }
+
+ if(IS_INTRESOURCE(optval))
+ {
+ SetLastError(WSAEFAULT);
return SOCKET_ERROR;
}