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:
parent
53290d2ec4
commit
0e18800f39
|
@ -7657,10 +7657,13 @@ static void test_GetAddrInfoExW(void)
|
||||||
ok(overlapped.Internal == ERROR_SUCCESS, "overlapped.Internal = %lx\n", overlapped.Internal);
|
ok(overlapped.Internal == ERROR_SUCCESS, "overlapped.Internal = %lx\n", overlapped.Internal);
|
||||||
ok(overlapped.Pointer == &result, "overlapped.Pointer != &result\n");
|
ok(overlapped.Pointer == &result, "overlapped.Pointer != &result\n");
|
||||||
ok(result != NULL, "result == NULL\n");
|
ok(result != NULL, "result == NULL\n");
|
||||||
ok(!result->ai_blob, "ai_blob != NULL\n");
|
if (result != NULL)
|
||||||
ok(!result->ai_bloblen, "ai_bloblen != 0\n");
|
{
|
||||||
ok(!result->ai_provider, "ai_provider = %s\n", wine_dbgstr_guid(result->ai_provider));
|
ok(!result->ai_blob, "ai_blob != NULL\n");
|
||||||
pFreeAddrInfoExW(result);
|
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;
|
result = (void*)0xdeadbeef;
|
||||||
memset(&overlapped, 0xcc, sizeof(overlapped));
|
memset(&overlapped, 0xcc, sizeof(overlapped));
|
||||||
|
|
Loading…
Reference in New Issue