mirror of
https://github.com/reactos/reactos.git
synced 2025-07-02 04:21:27 +00:00
[WIN32K]
- Fix error handling in NtGdiPathToRegion svn path=/trunk/; revision=64190
This commit is contained in:
parent
631f96a8a3
commit
0d048c3e47
1 changed files with 3 additions and 2 deletions
|
@ -2716,19 +2716,20 @@ NtGdiPathToRegion(HDC hDC)
|
||||||
{
|
{
|
||||||
PATH_UnlockPath(pPath);
|
PATH_UnlockPath(pPath);
|
||||||
DC_UnlockDc(pDc);
|
DC_UnlockDc(pDc);
|
||||||
|
return NULL;
|
||||||
}
|
}
|
||||||
hrgnRval = Rgn->BaseObject.hHmgr;
|
hrgnRval = Rgn->BaseObject.hHmgr;
|
||||||
/* FIXME: Should we empty the path even if conversion failed? */
|
/* FIXME: Should we empty the path even if conversion failed? */
|
||||||
if (PATH_PathToRegion(pPath, pdcattr->jFillMode, Rgn))
|
if (PATH_PathToRegion(pPath, pdcattr->jFillMode, Rgn))
|
||||||
{
|
{
|
||||||
PATH_EmptyPath(pPath);
|
PATH_EmptyPath(pPath);
|
||||||
|
RGNOBJAPI_Unlock(Rgn);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
GreDeleteObject(hrgnRval);
|
REGION_Delete(Rgn);
|
||||||
hrgnRval = NULL;
|
hrgnRval = NULL;
|
||||||
}
|
}
|
||||||
RGNOBJAPI_Unlock(Rgn);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
PATH_UnlockPath(pPath);
|
PATH_UnlockPath(pPath);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue