mirror of
https://github.com/reactos/reactos.git
synced 2026-06-21 23:22:48 +08: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:
committed by
GitHub
parent
88c1d8c737
commit
05bbbd7d8b
@@ -1362,6 +1362,8 @@ PIMC FASTCALL UserCreateInputContext(ULONG_PTR dwClientImcData)
|
||||
else // First time. It's the default IMC.
|
||||
{
|
||||
// Add the first one (default) to the list.
|
||||
if (pti->spDefaultImc)
|
||||
UserDereferenceObject(pti->spDefaultImc);
|
||||
pti->spDefaultImc = pIMC;
|
||||
pIMC->pImcNext = NULL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user