[PATCH] ws2_32/tests: Fix a test failure in test_GetAddrInfoExW().

Zebediah Figura zfigura at codeweavers.com
Mon Aug 16 11:20:17 CDT 2021


Signed-off-by: Zebediah Figura <zfigura at codeweavers.com>
---
 dlls/ws2_32/tests/protocol.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/dlls/ws2_32/tests/protocol.c b/dlls/ws2_32/tests/protocol.c
index 1f039e509da..bb09dc98f1c 100644
--- a/dlls/ws2_32/tests/protocol.c
+++ b/dlls/ws2_32/tests/protocol.c
@@ -1910,7 +1910,9 @@ static void test_GetAddrInfoExW(void)
     ResetEvent(event);
     ret = pGetAddrInfoExW(localhost, NULL, NS_DNS, NULL, NULL, &result, NULL, &overlapped, NULL, NULL);
     ok(ret == ERROR_IO_PENDING, "GetAddrInfoExW failed with %d\n", WSAGetLastError());
-    ok(!result, "result != NULL\n");
+    /* result pointer is cleared by GetAddrInfoExW(), but may be set to the
+     * actual addrinfo before we can verify that */
+    ok(result != (void *)0xdeadbeef, "result was not changed\n");
     ok(WaitForSingleObject(event, 1000) == WAIT_OBJECT_0, "wait failed\n");
     ret = pGetAddrInfoExOverlappedResult(&overlapped);
     ok(!ret, "overlapped result is %d\n", ret);
-- 
2.32.0




More information about the wine-devel mailing list