Commit dd497ffc authored by Rémi Bernon's avatar Rémi Bernon Committed by Alexandre Julliard

user32/tests: Do not expect ToAscii with 'A' vkey to return 'a' on non-us keyboards.

parent c56c76e6
......@@ -1885,6 +1885,7 @@ static void test_ToAscii(void)
const BYTE SC_RETURN = 0x1c, SC_A = 0x1e;
const BYTE HIGHEST_BIT = 0x80;
int ret;
BOOL us_kbd = (GetKeyboardLayout(0) == (HKL)(ULONG_PTR)0x04090409);
memset(state, 0, sizeof(state));
......@@ -1896,7 +1897,7 @@ static void test_ToAscii(void)
character = 0;
ret = ToAscii('A', SC_A, state, &character, 0);
ok(ret == 1, "ToAscii for character 'A' didn't return 1 (was %i)\n", ret);
ok(character == 'a', "ToAscii for character 'A' was %i (expected %i)\n", character, 'a');
if (us_kbd) ok(character == 'a', "ToAscii for character 'A' was %i (expected %i)\n", character, 'a');
state[VK_CONTROL] |= HIGHEST_BIT;
state[VK_LCONTROL] |= HIGHEST_BIT;
......
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