[NtGdi] Fix assert with Winamp

Fixes CORE-10774.

Reference:
Alexandre Julliard : Ignore empty rectangles in ExtCreateRegion.
8ac61c5a1e
This commit is contained in:
jimtabor 2019-03-31 13:31:59 -05:00
parent bd5fb32b79
commit 2f5c0ee0a9

View file

@ -3858,7 +3858,10 @@ NtGdiExtCreateRegion(
/* Insert the rectangles one by one */
for(i=0; i<nCount; i++)
{
REGION_UnionRectWithRgn(Region, &rects[i]);
if ( rects[i].left < rects[i].right && rects[i].top < rects[i].bottom )
{
REGION_UnionRectWithRgn(Region, &rects[i]);
}
}
if (Xform != NULL)