projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
631f96a
)
[WIN32K]
author
Jérôme Gardou
<jerome.gardou@reactos.org>
Thu, 18 Sep 2014 13:27:02 +0000
(13:27 +0000)
committer
Jérôme Gardou
<jerome.gardou@reactos.org>
Thu, 18 Sep 2014 13:27:02 +0000
(13:27 +0000)
- Fix error handling in NtGdiPathToRegion
svn path=/trunk/; revision=64190
reactos/win32ss/gdi/ntgdi/path.c
patch
|
blob
|
history
diff --git
a/reactos/win32ss/gdi/ntgdi/path.c
b/reactos/win32ss/gdi/ntgdi/path.c
index
8d7e34e
..
d7af75a
100644
(file)
--- a/
reactos/win32ss/gdi/ntgdi/path.c
+++ b/
reactos/win32ss/gdi/ntgdi/path.c
@@
-2716,19
+2716,20
@@
NtGdiPathToRegion(HDC hDC)
{
PATH_UnlockPath(pPath);
DC_UnlockDc(pDc);
+ return NULL;
}
hrgnRval = Rgn->BaseObject.hHmgr;
/* FIXME: Should we empty the path even if conversion failed? */
if (PATH_PathToRegion(pPath, pdcattr->jFillMode, Rgn))
{
PATH_EmptyPath(pPath);
+ RGNOBJAPI_Unlock(Rgn);
}
else
{
-
GreDeleteObject(hrgnRval
);
+
REGION_Delete(Rgn
);
hrgnRval = NULL;
}
- RGNOBJAPI_Unlock(Rgn);
}
PATH_UnlockPath(pPath);