Commit b0290ec3 authored by Keno Fischer's avatar Keno Fischer Committed by Alexandre Julliard

kernel32/tests: Improve tests for pUnregisterWait(0).

parent 4cf2ad98
......@@ -1246,9 +1246,11 @@ 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());
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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment