mirror of
https://github.com/reactos/reactos.git
synced 2026-06-21 20:22:48 +08:00
[IMM32] ImmEnumInputContext: Validate hIMC (#8761)
Tougher system. JIRA issue: CORE-19268 Check hIMC and gpsi in ImmEnumInputContext function.
This commit is contained in:
committed by
GitHub
parent
cad71d733f
commit
e2ef2c9923
@@ -1139,9 +1139,12 @@ ImmEnumInputContext(
|
||||
for (dwIndex = 0; dwIndex < dwCount; ++dwIndex)
|
||||
{
|
||||
hIMC = phList[dwIndex];
|
||||
ret = (*lpfn)(hIMC, lParam);
|
||||
if (!ret)
|
||||
break;
|
||||
if (hIMC && gpsi && ValidateHandle(hIMC, TYPE_INPUTCONTEXT))
|
||||
{
|
||||
ret = (*lpfn)(hIMC, lParam);
|
||||
if (!ret)
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
ImmLocalFree(phList);
|
||||
|
||||
Reference in New Issue
Block a user