ws2_32/tests: Avoid crashes on flaky/non-present network.

Signed-off-by: Marcus Meissner <meissner@suse.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Marcus Meissner 2017-11-12 20:50:45 +01:00 committed by Alexandre Julliard
parent 53290d2ec4
commit 0e18800f39
1 changed files with 7 additions and 4 deletions

View File

@ -7657,10 +7657,13 @@ static void test_GetAddrInfoExW(void)
ok(overlapped.Internal == ERROR_SUCCESS, "overlapped.Internal = %lx\n", overlapped.Internal);
ok(overlapped.Pointer == &result, "overlapped.Pointer != &result\n");
ok(result != NULL, "result == NULL\n");
if (result != NULL)
{
ok(!result->ai_blob, "ai_blob != NULL\n");
ok(!result->ai_bloblen, "ai_bloblen != 0\n");
ok(!result->ai_provider, "ai_provider = %s\n", wine_dbgstr_guid(result->ai_provider));
pFreeAddrInfoExW(result);
}
result = (void*)0xdeadbeef;
memset(&overlapped, 0xcc, sizeof(overlapped));