[IMM32] ImmGetImeInfoEx minor fix

CORE-11700
This commit is contained in:
Katayama Hirofumi MZ 2022-10-21 10:40:38 +09:00
parent 1f1dc9d84a
commit db16a1f783
2 changed files with 2 additions and 4 deletions

View file

@ -887,12 +887,9 @@ ImmGetImeInfoEx(PIMEINFOEX pImeInfoEx, IMEINFOEXCLASS SearchType, PVOID pvSearch
{
if (!IS_IME_HKL(hKL))
{
if (!CtfImmIsTextFrameServiceDisabled() ||
!IS_CICERO_MODE() || IS_16BIT_MODE())
{
if (CtfImmIsTextFrameServiceDisabled() || !IS_CICERO_MODE() || IS_16BIT_MODE())
return FALSE;
}
}
SearchType = ImeInfoExKeyboardLayout;
}

View file

@ -157,6 +157,7 @@ BOOL APIENTRY Imm32WriteImeLayout(HKL hKL, LPCWSTR pchFilePart, LPCWSTR pszLayou
HKL APIENTRY Imm32AssignNewLayout(UINT cKLs, const REG_IME *pLayouts, WORD wLangID);
BOOL APIENTRY Imm32CopyImeFile(LPWSTR pszOldFile, LPCWSTR pszNewFile);
/* Win: PtiCurrent */
static inline PTHREADINFO FASTCALL Imm32CurrentPti(VOID)
{
if (NtCurrentTeb()->Win32ThreadInfo == NULL)