mirror of
https://github.com/reactos/reactos.git
synced 2024-06-29 01:12:06 +00:00
[WIN32K] Check for empty output rect in GreGradientFill
Fixes a failed ASSERT. CORE-14148 #resolve
This commit is contained in:
parent
5e5e5cde68
commit
456e2192b7
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue