ws2_32: Set *res = NULL for error return from WS_getaddrinfo().

This commit is contained in:
Johannes Stezenbach 2007-12-22 23:29:55 +01:00 committed by Alexandre Julliard
parent a3ae419594
commit ca4d35fe48
1 changed files with 1 additions and 0 deletions

View File

@ -3480,6 +3480,7 @@ int WINAPI WS_getaddrinfo(LPCSTR nodename, LPCSTR servname, const struct WS_addr
freeaddrinfo(unixaires); freeaddrinfo(unixaires);
} else { } else {
result = convert_eai_u2w(result); result = convert_eai_u2w(result);
*res = NULL;
} }
return result; return result;