[comctl32]

- Do not call CombineRgn with erroneous parameters
- Should be sent to wine

svn path=/branches/GSoC_2011/ThemesSupport/; revision=53027
This commit is contained in:
Giannis Adamopoulos 2011-08-02 13:42:18 +00:00
parent e3a05782a8
commit 234190071e

View file

@ -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);