mirror of
https://github.com/reactos/reactos.git
synced 2024-11-19 05:22:59 +00:00
[NtGdi] Fix assert with Winamp
Fixes CORE-10774.
Reference:
Alexandre Julliard : Ignore empty rectangles in ExtCreateRegion.
8ac61c5a1e
This commit is contained in:
parent
bd5fb32b79
commit
2f5c0ee0a9
1 changed files with 4 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue