[KBSWITCH][IMM32][USER32] Consider keyboard layout corner cases

Considering invalid Keyboard Layout registry entries.
CORE-11700
This commit is contained in:
Katayama Hirofumi MZ 2022-10-13 16:01:02 +09:00
parent fb86db15bb
commit bbef618032
3 changed files with 6 additions and 4 deletions

View file

@ -796,6 +796,7 @@ IntLoadKeyboardLayout(
{
bIsIME = FALSE;
wHigh = 0;
ERR("0x%X\n", dwKLID);
}
else
{
@ -810,6 +811,7 @@ IntLoadKeyboardLayout(
{
bIsIME = FALSE;
wHigh = 0;
ERR("'%s'\n", debugstr_w(szPath));
}
}
}