[PATCH] kernel32: Improve tests for pUnregisterWait(0)
Keno Fischer
keno at juliacomputing.com
Wed Aug 24 23:17:07 CDT 2016
This addresses the review comments on the original thread in which
I introduced this test.
Signed-off-by: Keno Fischer <keno at juliacomputing.com>
---
dlls/kernel32/tests/thread.c | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/dlls/kernel32/tests/thread.c b/dlls/kernel32/tests/thread.c
index 0a5f0d3..5cbb1fd 100644
--- a/dlls/kernel32/tests/thread.c
+++ b/dlls/kernel32/tests/thread.c
@@ -1246,9 +1246,12 @@ static void test_RegisterWaitForSingleObject(void)
ret = pUnregisterWait(wait_handle);
ok(ret, "UnregisterWait failed with error %d\n", GetLastError());
- ret = pUnregisterWait(0);
- ok(!ret && GetLastError() == ERROR_INVALID_HANDLE,
- "UnregisterWait failed with unexpected error %d\n", GetLastError());
+ /* Test UnregisterWait NULL argument case */
+ SetLastError(0xDEADBEEF);
+ ret = pUnregisterWait(NULL);
+ ok(!ret, "Expected UnregisterWait to fail");
+ ok(GetLastError() == ERROR_INVALID_HANDLE,
+ "Expected ERROR_INVALID_HANDLE, got %d\n", GetLastError());
}
static DWORD LS_main;
--
2.7.4
More information about the wine-patches
mailing list