mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-02 19:03:38 +00:00
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.Pointer == &result, "overlapped.Pointer != &result\n");
|
||||
ok(result != NULL, "result == NULL\n");
|
||||
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);
|
||||
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));
|
||||
|
|
Loading…
Reference in a new issue