mirror of
https://github.com/reactos/reactos.git
synced 2025-06-05 17:30:32 +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
1 changed files with 6 additions and 0 deletions
|
@ -945,6 +945,12 @@ GreGradientFill(
|
||||||
rclExtent.top += pdc->ptlDCOrig.y;
|
rclExtent.top += pdc->ptlDCOrig.y;
|
||||||
rclExtent.bottom += pdc->ptlDCOrig.y;
|
rclExtent.bottom += pdc->ptlDCOrig.y;
|
||||||
|
|
||||||
|
if (RECTL_bIsEmptyRect(&rclExtent))
|
||||||
|
{
|
||||||
|
DC_UnlockDc(pdc);
|
||||||
|
return TRUE;
|
||||||
|
}
|
||||||
|
|
||||||
ptlDitherOrg.x = ptlDitherOrg.y = 0;
|
ptlDitherOrg.x = ptlDitherOrg.y = 0;
|
||||||
IntLPtoDP(pdc, (LPPOINT)&ptlDitherOrg, 1);
|
IntLPtoDP(pdc, (LPPOINT)&ptlDitherOrg, 1);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue