mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 18:25:58 +00:00
[IMM32] Move CtfImmTIMCreateInputContext calls
CORE-11700
This commit is contained in:
parent
db16a1f783
commit
edbeaa3c87
1 changed files with 7 additions and 1 deletions
|
@ -778,6 +778,8 @@ Imm32CreateInputContext(HIMC hIMC, LPINPUTCONTEXT pIC, PCLIENTIMC pClientImc, HK
|
||||||
if (!pIC->hPrivate)
|
if (!pIC->hPrivate)
|
||||||
goto Fail;
|
goto Fail;
|
||||||
|
|
||||||
|
CtfImmTIMCreateInputContext(hIMC);
|
||||||
|
|
||||||
if (pImeDpi)
|
if (pImeDpi)
|
||||||
{
|
{
|
||||||
/* Select the IME */
|
/* Select the IME */
|
||||||
|
@ -829,9 +831,14 @@ LPINPUTCONTEXT APIENTRY Imm32InternalLockIMC(HIMC hIMC, BOOL fSelect)
|
||||||
{
|
{
|
||||||
pIC = LocalLock(pClientImc->hInputContext);
|
pIC = LocalLock(pClientImc->hInputContext);
|
||||||
if (pIC)
|
if (pIC)
|
||||||
|
{
|
||||||
|
CtfImmTIMCreateInputContext(hIMC);
|
||||||
goto Success;
|
goto Success;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
goto Failure;
|
goto Failure;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
dwThreadId = (DWORD)NtUserQueryInputContext(hIMC, QIC_INPUTTHREADID);
|
dwThreadId = (DWORD)NtUserQueryInputContext(hIMC, QIC_INPUTTHREADID);
|
||||||
|
@ -868,7 +875,6 @@ LPINPUTCONTEXT APIENTRY Imm32InternalLockIMC(HIMC hIMC, BOOL fSelect)
|
||||||
}
|
}
|
||||||
|
|
||||||
Success:
|
Success:
|
||||||
CtfImmTIMCreateInputContext(hIMC);
|
|
||||||
RtlLeaveCriticalSection(&pClientImc->cs);
|
RtlLeaveCriticalSection(&pClientImc->cs);
|
||||||
InterlockedIncrement(&pClientImc->cLockObj);
|
InterlockedIncrement(&pClientImc->cLockObj);
|
||||||
ImmUnlockClientImc(pClientImc);
|
ImmUnlockClientImc(pClientImc);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue