projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5e5e5cd
)
[WIN32K] Check for empty output rect in GreGradientFill
author
Timo Kreuzer
<timo.kreuzer@reactos.org>
Wed, 27 Dec 2017 09:48:55 +0000
(10:48 +0100)
committer
Timo Kreuzer
<timo.kreuzer@reactos.org>
Thu, 28 Dec 2017 09:46:01 +0000
(10:46 +0100)
Fixes a failed ASSERT.
CORE-14148 #resolve
win32ss/gdi/ntgdi/fillshap.c
patch
|
blob
|
history
diff --git
a/win32ss/gdi/ntgdi/fillshap.c
b/win32ss/gdi/ntgdi/fillshap.c
index
f3663a6
..
a42a341
100644
(file)
--- a/
win32ss/gdi/ntgdi/fillshap.c
+++ b/
win32ss/gdi/ntgdi/fillshap.c
@@
-945,6
+945,12
@@
GreGradientFill(
rclExtent.top += pdc->ptlDCOrig.y;
rclExtent.bottom += pdc->ptlDCOrig.y;
+ if (RECTL_bIsEmptyRect(&rclExtent))
+ {
+ DC_UnlockDc(pdc);
+ return TRUE;
+ }
+
ptlDitherOrg.x = ptlDitherOrg.y = 0;
IntLPtoDP(pdc, (LPPOINT)&ptlDitherOrg, 1);