mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
[NTUSER] Check class name existence on IntGetAtomFromStringOrAtom (#6184)
Based on I_Kill_Bugs' class_error.patch. JIRA issue: CORE-13422, CORE-7531, CORE-18639
This commit is contained in:
parent
8b5c5fb913
commit
9a9b22aac1
1 changed files with 11 additions and 3 deletions
|
@ -1355,9 +1355,17 @@ IntGetAtomFromStringOrAtom(
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ASSERT(IS_ATOM(ClassName->Buffer));
|
if (ClassName->Buffer)
|
||||||
*Atom = (RTL_ATOM)((ULONG_PTR)ClassName->Buffer);
|
{
|
||||||
Ret = TRUE;
|
*Atom = (RTL_ATOM)((ULONG_PTR)ClassName->Buffer);
|
||||||
|
Ret = TRUE;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
*Atom = 0;
|
||||||
|
EngSetLastError(ERROR_CLASS_DOES_NOT_EXIST);
|
||||||
|
Ret = FALSE;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return Ret;
|
return Ret;
|
||||||
|
|
Loading…
Reference in a new issue