[WIN32K] Check for empty output rect in GreGradientFill

Fixes a failed ASSERT.
CORE-14148 #resolve
This commit is contained in:
Timo Kreuzer 2017-12-27 10:48:55 +01:00
parent 5e5e5cde68
commit 456e2192b7

View file

@ -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);