Commit 8ac61c5a authored by Alexandre Julliard's avatar Alexandre Julliard

Ignore empty rectangles in ExtCreateRegion.

parent e95136b7
...@@ -1018,7 +1018,10 @@ HRGN WINAPI ExtCreateRegion( const XFORM* lpXform, DWORD dwCount, const RGNDATA* ...@@ -1018,7 +1018,10 @@ HRGN WINAPI ExtCreateRegion( const XFORM* lpXform, DWORD dwCount, const RGNDATA*
if (obj) { if (obj) {
pEndRect = (RECT *)rgndata->Buffer + rgndata->rdh.nCount; pEndRect = (RECT *)rgndata->Buffer + rgndata->rdh.nCount;
for(pCurRect = (RECT *)rgndata->Buffer; pCurRect < pEndRect; pCurRect++) for(pCurRect = (RECT *)rgndata->Buffer; pCurRect < pEndRect; pCurRect++)
REGION_UnionRectWithRegion( pCurRect, obj->rgn ); {
if (pCurRect->left < pCurRect->right && pCurRect->top < pCurRect->bottom)
REGION_UnionRectWithRegion( pCurRect, obj->rgn );
}
GDI_ReleaseObj( hrgn ); GDI_ReleaseObj( hrgn );
TRACE("%p\n", hrgn ); TRACE("%p\n", hrgn );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment