mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
[IMM32] Imm32InternalLockIMC: Unlock hIC on failure
CORE-11700
This commit is contained in:
parent
143ed5e72d
commit
5462d4adad
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue