mirror of
https://github.com/reactos/reactos.git
synced 2024-10-01 06:57:08 +00:00
[WS2_32]
- Fix a few ws2_32:getaddrinfo test failures. Based on a patch by Peter Hater. CORE-11368 svn path=/trunk/; revision=71951
This commit is contained in:
parent
e556dea177
commit
beec6930e7
|
@ -1605,23 +1605,20 @@ getaddrinfo(const char FAR * nodename,
|
|||
struct sockaddr_in *sin;
|
||||
INT error;
|
||||
|
||||
if (res == NULL)
|
||||
{
|
||||
error = WSAEINVAL;
|
||||
goto End;
|
||||
}
|
||||
if (nodename == NULL && servname == NULL)
|
||||
{
|
||||
error = WSAHOST_NOT_FOUND;
|
||||
goto End;
|
||||
}
|
||||
|
||||
if (!WSAINITIALIZED)
|
||||
{
|
||||
error = WSANOTINITIALISED;
|
||||
goto End;
|
||||
}
|
||||
|
||||
*res = NULL;
|
||||
|
||||
if (nodename == NULL && servname == NULL)
|
||||
{
|
||||
error = WSAHOST_NOT_FOUND;
|
||||
goto End;
|
||||
}
|
||||
|
||||
if (servname)
|
||||
{
|
||||
/* converting port number */
|
||||
|
|
Loading…
Reference in a new issue