Author: tfaber
Date: Sat Jul 16 07:49:30 2016
New Revision: 71951
URL:
http://svn.reactos.org/svn/reactos?rev=71951&view=rev
Log:
[WS2_32]
- Fix a few ws2_32:getaddrinfo test failures. Based on a patch by Peter Hater.
CORE-11368
Modified:
trunk/reactos/dll/win32/ws2_32/misc/ns.c
Modified: trunk/reactos/dll/win32/ws2_32/misc/ns.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/ws2_32/misc/ns.c…
==============================================================================
--- trunk/reactos/dll/win32/ws2_32/misc/ns.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/ws2_32/misc/ns.c [iso-8859-1] Sat Jul 16 07:49:30 2016
@@ -1605,20 +1605,17 @@
struct sockaddr_in *sin;
INT error;
- if (res == NULL)
- {
- error = WSAEINVAL;
+ if (!WSAINITIALIZED)
+ {
+ error = WSANOTINITIALISED;
goto End;
}
+
+ *res = NULL;
+
if (nodename == NULL && servname == NULL)
{
error = WSAHOST_NOT_FOUND;
- goto End;
- }
-
- if (!WSAINITIALIZED)
- {
- error = WSANOTINITIALISED;
goto End;
}