[IMM32] Imm32InternalLockIMC: Unlock hIC on failure

CORE-11700
This commit is contained in:
Katayama Hirofumi MZ 2022-10-21 16:40:25 +09:00
parent 143ed5e72d
commit 5462d4adad

View file

@ -867,7 +867,8 @@ LPINPUTCONTEXT APIENTRY Imm32InternalLockIMC(HIMC hIMC, BOOL fSelect)
hNewKL = GetKeyboardLayout(dwThreadId);
if (!Imm32CreateInputContext(hIMC, pIC, pClientImc, hNewKL, fSelect))
{
pClientImc->hInputContext = LocalFree(pClientImc->hInputContext);
LocalUnlock(hIC);
pClientImc->hInputContext = LocalFree(hIC);
goto Failure;
}