mirror of
https://github.com/reactos/reactos.git
synced 2024-09-29 05:54:05 +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
|
@ -3857,9 +3857,12 @@ NtGdiExtCreateRegion(
|
||||||
{
|
{
|
||||||
/* Insert the rectangles one by one */
|
/* Insert the rectangles one by one */
|
||||||
for(i=0; i<nCount; i++)
|
for(i=0; i<nCount; i++)
|
||||||
|
{
|
||||||
|
if ( rects[i].left < rects[i].right && rects[i].top < rects[i].bottom )
|
||||||
{
|
{
|
||||||
REGION_UnionRectWithRgn(Region, &rects[i]);
|
REGION_UnionRectWithRgn(Region, &rects[i]);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (Xform != NULL)
|
if (Xform != NULL)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue