mirror of
https://github.com/reactos/reactos.git
synced 2024-09-28 21:44:31 +00:00
[NTUSER] Dereference spDefaultImc at UserCreateInputContext (#4446)
Dereference pti->spDefaultImc by UserDereferenceObject if pti->spDefaultImc is NULL at UserCreateInputContext function. CORE-11700
This commit is contained in:
parent
88c1d8c737
commit
05bbbd7d8b
|
@ -1362,6 +1362,8 @@ PIMC FASTCALL UserCreateInputContext(ULONG_PTR dwClientImcData)
|
||||||
else // First time. It's the default IMC.
|
else // First time. It's the default IMC.
|
||||||
{
|
{
|
||||||
// Add the first one (default) to the list.
|
// Add the first one (default) to the list.
|
||||||
|
if (pti->spDefaultImc)
|
||||||
|
UserDereferenceObject(pti->spDefaultImc);
|
||||||
pti->spDefaultImc = pIMC;
|
pti->spDefaultImc = pIMC;
|
||||||
pIMC->pImcNext = NULL;
|
pIMC->pImcNext = NULL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue