user32/tests: Skip inconsistent OemKeyScan tests on non-us keyboard.

Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Rémi Bernon 2021-05-14 16:04:45 +02:00 committed by Alexandre Julliard
parent f074862504
commit 1cfc34551e
1 changed files with 7 additions and 0 deletions

View File

@ -4167,6 +4167,13 @@ static void test_OemKeyScan(void)
WCHAR oem, wchr;
char oem_char;
BOOL us_kbd = (GetKeyboardLayout(0) == (HKL)(ULONG_PTR)0x04090409);
if (!us_kbd)
{
skip("skipping test with inconsistent results on non-us keyboard\n");
return;
}
for (oem = 0; oem < 0x200; oem++)
{
ret = OemKeyScan( oem );