mirror of
https://github.com/reactos/reactos.git
synced 2024-06-21 13:31:38 +00:00
[0.4.9][WIN32SS] Fix assert with Winamp 5.666 CORE-10774
Fixes CORE-10774 "Winamp asserts upon startup when Bentoo skin is selected" Reference: Alexandre Julliard : Ignore empty rectangles in ExtCreateRegion.8ac61c5a1e
fix picked from 0.4.12-dev-979-g2f5c0ee0a9
This commit is contained in:
parent
7c969a1e23
commit
1667ebbb22
|
@ -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