Commit 2f9f126a authored by Connor McAdams's avatar Connor McAdams Committed by Alexandre Julliard

ws2_32: Return WSAEINVAL from GetAddrInfoExOverlappedResult if overlapped is NULL.

parent 617c9b46
......@@ -514,6 +514,10 @@ int WINAPI GetAddrInfoExW( const WCHAR *name, const WCHAR *servname, DWORD names
int WINAPI GetAddrInfoExOverlappedResult( OVERLAPPED *overlapped )
{
TRACE( "(%p)\n", overlapped );
if (!overlapped)
return WSAEINVAL;
return overlapped->Internal;
}
......
......@@ -1904,6 +1904,9 @@ static void test_GetAddrInfoExW(void)
ok(!ret, "GetAddrInfoExW failed with %d\n", WSAGetLastError());
pFreeAddrInfoExW(result);
ret = pGetAddrInfoExOverlappedResult(NULL);
ok(ret == WSAEINVAL, "overlapped result is %d\n", ret);
result = (void *)0xdeadbeef;
memset(&overlapped, 0xcc, sizeof(overlapped));
overlapped.hEvent = event;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment