mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 07:32:57 +00:00
[WIN32K]
Fix crash, when running out of paged pool. Found by r3ddr4g0n. svn path=/trunk/; revision=57962
This commit is contained in:
parent
71a8acfc03
commit
f538008e3e
1 changed files with 5 additions and 0 deletions
|
@ -1237,6 +1237,11 @@ GDIOBJ_AllocObjWithHandle(ULONG ObjectType, ULONG cjSize)
|
||||||
}
|
}
|
||||||
|
|
||||||
pobj = GDIOBJ_AllocateObject(objt, cjSize, fl);
|
pobj = GDIOBJ_AllocateObject(objt, cjSize, fl);
|
||||||
|
if (!pobj)
|
||||||
|
{
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
if (!GDIOBJ_hInsertObject(pobj, GDI_OBJ_HMGR_POWNED))
|
if (!GDIOBJ_hInsertObject(pobj, GDI_OBJ_HMGR_POWNED))
|
||||||
{
|
{
|
||||||
GDIOBJ_vFreeObject(pobj);
|
GDIOBJ_vFreeObject(pobj);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue