mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-04 21:07:44 +00:00
user32/tests: Check all letters in test_hotkey.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=55317
This commit is contained in:
parent
e7b4e883d1
commit
87b1cd12d6
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue