Module: wine
Branch: master
Commit: 17871709e582708b435fdecc786d31f5f350fbba
URL: https://source.winehq.org/git/wine.git/?a=commit;h=17871709e582708b435fdecc…
Author: Zebediah Figura <zfigura(a)codeweavers.com>
Date: Mon Aug 16 11:20:17 2021 -0500
ws2_32/tests: Fix a test failure in test_GetAddrInfoExW().
Signed-off-by: Zebediah Figura <zfigura(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
---
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);
Module: wine
Branch: master
Commit: ba020f42bad61c82ce089744b18454f1da1edb7a
URL: https://source.winehq.org/git/wine.git/?a=commit;h=ba020f42bad61c82ce089744…
Author: Francois Gouget <fgouget(a)codeweavers.com>
Date: Mon Aug 16 17:46:28 2021 +0200
advapi32/tests: RegSetValueExA() should succeed when given a NULL data pointer.
This used to fail on Windows 95 but we don't want to allow such
behavior anymore.
Signed-off-by: Francois Gouget <fgouget(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
---
dlls/advapi32/tests/registry.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/advapi32/tests/registry.c b/dlls/advapi32/tests/registry.c
index bccc5706131..fb3d5a34f51 100644
--- a/dlls/advapi32/tests/registry.c
+++ b/dlls/advapi32/tests/registry.c
@@ -491,9 +491,9 @@ static void test_enum_value(void)
else
ok( !res, "RegSetValueExA returned %d\n", res );
res = RegSetValueExA( test_key, "Test", 0, REG_EXPAND_SZ, NULL, 0 );
- ok( ERROR_SUCCESS == res || ERROR_INVALID_PARAMETER == res, "RegSetValueExA returned %d\n", res );
+ ok( ERROR_SUCCESS == res, "RegSetValueExA returned %d\n", res );
res = RegSetValueExA( test_key, "Test", 0, REG_BINARY, NULL, 0 );
- ok( ERROR_SUCCESS == res || ERROR_INVALID_PARAMETER == res, "RegSetValueExA returned %d\n", res );
+ ok( ERROR_SUCCESS == res, "RegSetValueExA returned %d\n", res );
/* test reading the value and data without setting them */
val_count = 20;