user32/tests: Add more tests for GetKeyState().

Signed-off-by: Markus Engel <markus_wine@familie-engel.online>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
feature/deterministic
Markus Engel 2020-05-18 18:35:59 +02:00 committed by Alexandre Julliard
parent d9855df17f
commit ace37a68b7
1 changed files with 6 additions and 0 deletions

View File

@ -2759,6 +2759,9 @@ static DWORD WINAPI get_key_state_thread(void *arg)
ok((result & 0x8000) || broken(!(result & 0x8000)), /* > Win 2003 */
"expected that highest bit is set, got %x\n", result);
ok((SHORT)(result & 0x007e) == 0,
"expected that undefined bits are unset, got %x\n", result);
ReleaseSemaphore(semaphores[0], 1, NULL);
result = WaitForSingleObject(semaphores[1], 1000);
ok(result == WAIT_OBJECT_0, "WaitForSingleObject returned %u\n", result);
@ -2766,6 +2769,9 @@ static DWORD WINAPI get_key_state_thread(void *arg)
result = GetKeyState('X');
ok(!(result & 0x8000), "expected that highest bit is unset, got %x\n", result);
ok((SHORT)(result & 0x007e) == 0,
"expected that undefined bits are unset, got %x\n", result);
return 0;
}