mirror of
https://github.com/reactos/reactos.git
synced 2026-05-30 23:33:24 +08:00
[WIN32K] Fix missing NULL check in NtGdiPathToRegion
This commit is contained in:
@@ -2893,6 +2893,14 @@ NtGdiPathToRegion(HDC hDC)
|
||||
hrgnRval = Rgn->BaseObject.hHmgr;
|
||||
|
||||
pNewPath = PATH_FlattenPath(pPath);
|
||||
if (pNewPath == NULL)
|
||||
{
|
||||
ERR("Failed to flatten path %p\n", pDc->dclevel.hPath);
|
||||
REGION_Delete(Rgn);
|
||||
PATH_UnlockPath(pPath);
|
||||
DC_UnlockDc(pDc);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Ret = PATH_PathToRegion(pNewPath, pdcattr->jFillMode, Rgn);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user