mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 04:13:34 +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:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user