[comctl32]
authorGiannis Adamopoulos <gadamopoulos@reactos.org>
Sat, 22 Oct 2011 11:35:13 +0000 (11:35 +0000)
committerGiannis Adamopoulos <gadamopoulos@reactos.org>
Sat, 22 Oct 2011 11:35:13 +0000 (11:35 +0000)
- merge r53027 that missed the merge from themes branch
- fixes floods of debug output by CombineRgn

svn path=/trunk/; revision=54230

reactos/dll/win32/comctl32/listview.c

index d6da12d..3b5ffe4 100644 (file)
@@ -10359,7 +10359,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);