projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e556dea
)
[WS2_32]
author
Thomas Faber
<thomas.faber@reactos.org>
Sat, 16 Jul 2016 07:49:30 +0000
(07:49 +0000)
committer
Thomas Faber
<thomas.faber@reactos.org>
Sat, 16 Jul 2016 07:49:30 +0000
(07:49 +0000)
- Fix a few ws2_32:getaddrinfo test failures. Based on a patch by Peter Hater.
CORE-11368
svn path=/trunk/; revision=71951
reactos/dll/win32/ws2_32/misc/ns.c
patch
|
blob
|
history
diff --git
a/reactos/dll/win32/ws2_32/misc/ns.c
b/reactos/dll/win32/ws2_32/misc/ns.c
index
d729dfc
..
9383d4e
100644
(file)
--- a/
reactos/dll/win32/ws2_32/misc/ns.c
+++ b/
reactos/dll/win32/ws2_32/misc/ns.c
@@
-1605,23
+1605,20
@@
getaddrinfo(const char FAR * nodename,
struct sockaddr_in *sin;
INT error;
- if (
res == NULL
)
+ if (
!WSAINITIALIZED
)
{
- error = WSA
EINVAL
;
+ error = WSA
NOTINITIALISED
;
goto End;
}
+
+ *res = NULL;
+
if (nodename == NULL && servname == NULL)
{
error = WSAHOST_NOT_FOUND;
goto End;
}
- if (!WSAINITIALIZED)
- {
- error = WSANOTINITIALISED;
- goto End;
- }
-
if (servname)
{
/* converting port number */