ntdll/tests: Add Nt[WaitFor|Release]KeyedEvent test with NULL handle.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=44620 Signed-off-by: Gijs Vermeulen <gijsvrm@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
069eb68bf9
commit
7de2754cc6
|
@ -1677,6 +1677,13 @@ static void test_keyed_events(void)
|
|||
status = pNtReleaseKeyedEvent( handle, NULL, 0, &timeout );
|
||||
ok( status == STATUS_TIMEOUT, "NtReleaseKeyedEvent %x\n", status );
|
||||
|
||||
status = pNtWaitForKeyedEvent( NULL, (void *)8, 0, &timeout );
|
||||
todo_wine ok( status == STATUS_TIMEOUT || broken(status == STATUS_INVALID_HANDLE), /* XP/2003 */
|
||||
"NtWaitForKeyedEvent %x\n", status );
|
||||
status = pNtReleaseKeyedEvent( NULL, (void *)8, 0, &timeout );
|
||||
todo_wine ok( status == STATUS_TIMEOUT || broken(status == STATUS_INVALID_HANDLE), /* XP/2003 */
|
||||
"NtReleaseKeyedEvent %x\n", status );
|
||||
|
||||
status = pNtWaitForKeyedEvent( (HANDLE)0xdeadbeef, (void *)9, 0, &timeout );
|
||||
ok( status == STATUS_INVALID_PARAMETER_1, "NtWaitForKeyedEvent %x\n", status );
|
||||
status = pNtReleaseKeyedEvent( (HANDLE)0xdeadbeef, (void *)9, 0, &timeout );
|
||||
|
|
Loading…
Reference in New Issue