https://git.reactos.org/?p=reactos.git;a=commitdiff;h=2f5c0ee0a9ffc6619ba35…
commit 2f5c0ee0a9ffc6619ba35ed120e023283fdb1a88
Author: jimtabor <james.tabor(a)reactos.org>
AuthorDate: Sun Mar 31 13:31:59 2019 -0500
Commit: jimtabor <james.tabor(a)reactos.org>
CommitDate: Sun Mar 31 13:31:59 2019 -0500
[NtGdi] Fix assert with Winamp
Fixes CORE-10774.
Reference:
Alexandre Julliard : Ignore empty rectangles in ExtCreateRegion.
https://source.winehq.org/git/wine.git/commitdiff/8ac61c5a1e56d0933de8af69d…
---
win32ss/gdi/ntgdi/region.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/win32ss/gdi/ntgdi/region.c b/win32ss/gdi/ntgdi/region.c
index 13fae9efd1..79712182c7 100644
--- a/win32ss/gdi/ntgdi/region.c
+++ b/win32ss/gdi/ntgdi/region.c
@@ -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)