[IMM32] ImmGetDescriptionW: Check IS_IME_HKL (#8762)

Tougher system.
JIRA issue: CORE-19268
This commit is contained in:
Katayama Hirofumi MZ
2026-03-25 09:36:59 +09:00
committed by GitHub
parent 4ca47af13f
commit ed0b44f3b9

View File

@@ -675,7 +675,7 @@ ImmGetDescriptionW(
TRACE("(%p, %p, %d)\n", hKL, lpszDescription, uBufLen);
if (!ImmGetImeInfoEx(&info, ImeInfoExKeyboardLayout, &hKL))
if (!IS_IME_HKL(hKL) || !ImmGetImeInfoEx(&info, ImeInfoExKeyboardLayout, &hKL))
{
ERR("\n");
return 0;