From 234190071ee7668dff8afbe067acec0d8c90943b Mon Sep 17 00:00:00 2001 From: Giannis Adamopoulos Date: Tue, 2 Aug 2011 13:42:18 +0000 Subject: [PATCH] [comctl32] - Do not call CombineRgn with erroneous parameters - Should be sent to wine svn path=/branches/GSoC_2011/ThemesSupport/; revision=53027 --- dll/win32/comctl32/listview.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dll/win32/comctl32/listview.c b/dll/win32/comctl32/listview.c index 033472cc8da..de9dd34f1b2 100644 --- a/dll/win32/comctl32/listview.c +++ b/dll/win32/comctl32/listview.c @@ -10400,7 +10400,7 @@ static BOOL LISTVIEW_NCPaint(const LISTVIEW_INFO *infoPtr, HRGN region) cliprgn = CreateRectRgn (r.left + cxEdge, r.top + cyEdge, r.right - cxEdge, r.bottom - cyEdge); - if (region != (HRGN)1) + if (region > (HRGN)1) CombineRgn (cliprgn, cliprgn, region, RGN_AND); OffsetRect(&r, -r.left, -r.top);