user32/tests: Check all letters in test_hotkey.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=55317
This commit is contained in:
Esme Povirk 2023-09-06 13:56:14 -05:00 committed by Alexandre Julliard
parent e7b4e883d1
commit 87b1cd12d6

View file

@ -18629,7 +18629,7 @@ static void test_hotkey(void)
"unexpected error %ld\n", GetLastError());
/* Search for a Windows Key + letter combination that hasn't been registered */
for (hotkey_letter = 0x41; hotkey_letter <= 0x51; hotkey_letter ++)
for (hotkey_letter = 'A'; hotkey_letter <= 'Z'; hotkey_letter ++)
{
SetLastError(0xdeadbeef);
ret = RegisterHotKey(test_window, 5, MOD_WIN, hotkey_letter);
@ -18645,7 +18645,7 @@ static void test_hotkey(void)
}
}
if (hotkey_letter == 0x52)
if (hotkey_letter > 'Z')
{
ok(0, "Couldn't find any free Windows Key + letter combination\n");
goto end;
@ -18845,7 +18845,7 @@ static void test_hotkey(void)
ok_sequence(WmHotkeyReleaseLWIN, "thread hotkey release LWIN", FALSE);
/* Search for an ALT + letter combination that hasn't been registered */
for (hotkey_letter = 0x41; hotkey_letter <= 0x51; hotkey_letter ++)
for (hotkey_letter = 'A'; hotkey_letter <= 'Z'; hotkey_letter ++)
{
SetLastError(0xdeadbeef);
ret = RegisterHotKey(test_window, 6, MOD_ALT, hotkey_letter);
@ -18861,7 +18861,7 @@ static void test_hotkey(void)
}
}
if (hotkey_letter == 0x52)
if (hotkey_letter > 'Z')
{
ok(0, "Couldn't find any free ALT + letter combination\n");
goto end;