[IMM32] Improve ImmGetCandidateWindow

CORE-11700
This commit is contained in:
Katayama Hirofumi MZ
2022-10-21 15:22:06 +09:00
parent 633ed86af2
commit e1d3a7d08c
2 changed files with 5 additions and 1 deletions

View File

@@ -364,8 +364,11 @@ ImmGetCandidateWindow(HIMC hIMC, DWORD dwIndex, LPCANDIDATEFORM lpCandidate)
TRACE("(%p, %lu, %p)\n", hIMC, dwIndex, lpCandidate);
if (dwIndex >= MAX_CANDIDATEFORM) /* Windows didn't check but we do for security reason */
return FALSE;
pIC = ImmLockIMC(hIMC);
if (pIC == NULL)
if (pIC == NULL)
return FALSE;
pCF = &pIC->cfCandForm[dwIndex];

View File

@@ -42,6 +42,7 @@ Imm32UIntToStr(DWORD dwValue, ULONG nBase, LPWSTR pszBuff, USHORT cchBuff)
return S_OK;
}
/* Win: CheckCountry */
BOOL APIENTRY Imm32IsSystemJapaneseOrKorean(VOID)
{
LCID lcid = GetSystemDefaultLCID();