[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,11 +887,8 @@ ImmGetImeInfoEx(PIMEINFOEX pImeInfoEx, IMEINFOEXCLASS SearchType, PVOID pvSearch
{ {
if (!IS_IME_HKL(hKL)) if (!IS_IME_HKL(hKL))
{ {
if (!CtfImmIsTextFrameServiceDisabled() || if (CtfImmIsTextFrameServiceDisabled() || !IS_CICERO_MODE() || IS_16BIT_MODE())
!IS_CICERO_MODE() || IS_16BIT_MODE())
{
return FALSE; return FALSE;
}
} }
SearchType = ImeInfoExKeyboardLayout; 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); HKL APIENTRY Imm32AssignNewLayout(UINT cKLs, const REG_IME *pLayouts, WORD wLangID);
BOOL APIENTRY Imm32CopyImeFile(LPWSTR pszOldFile, LPCWSTR pszNewFile); BOOL APIENTRY Imm32CopyImeFile(LPWSTR pszOldFile, LPCWSTR pszNewFile);
/* Win: PtiCurrent */
static inline PTHREADINFO FASTCALL Imm32CurrentPti(VOID) static inline PTHREADINFO FASTCALL Imm32CurrentPti(VOID)
{ {
if (NtCurrentTeb()->Win32ThreadInfo == NULL) if (NtCurrentTeb()->Win32ThreadInfo == NULL)