mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 15:52:57 +00:00
[WIN32K] Fix missing NULL check in NtGdiPathToRegion
This commit is contained in:
parent
60af8194bb
commit
84b09285c8
1 changed files with 8 additions and 0 deletions
|
@ -2893,6 +2893,14 @@ NtGdiPathToRegion(HDC hDC)
|
||||||
hrgnRval = Rgn->BaseObject.hHmgr;
|
hrgnRval = Rgn->BaseObject.hHmgr;
|
||||||
|
|
||||||
pNewPath = PATH_FlattenPath(pPath);
|
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);
|
Ret = PATH_PathToRegion(pNewPath, pdcattr->jFillMode, Rgn);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue