mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 09:34:43 +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
|
||||
{
|
||||
ASSERT(IS_ATOM(ClassName->Buffer));
|
||||
*Atom = (RTL_ATOM)((ULONG_PTR)ClassName->Buffer);
|
||||
Ret = TRUE;
|
||||
if (ClassName->Buffer)
|
||||
{
|
||||
*Atom = (RTL_ATOM)((ULONG_PTR)ClassName->Buffer);
|
||||
Ret = TRUE;
|
||||
}
|
||||
else
|
||||
{
|
||||
*Atom = 0;
|
||||
EngSetLastError(ERROR_CLASS_DOES_NOT_EXIST);
|
||||
Ret = FALSE;
|
||||
}
|
||||
}
|
||||
|
||||
return Ret;
|
||||
|
|
Loading…
Reference in a new issue