comctl32: Fix build with MSVC.

Thomas Faber thfabba at gmx.de
Sat Sep 14 14:22:00 CDT 2013


From b1d3c2390b7e4640d682d984cd90bf3d832eeefb Mon Sep 17 00:00:00 2001
From: Thomas Faber <thfabba at gmx.de>
Date: Sat, 14 Sep 2013 21:20:53 +0200
Subject: comctl32: Fix build with MSVC.

---
 dlls/comctl32/trackbar.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/dlls/comctl32/trackbar.c b/dlls/comctl32/trackbar.c
index 50c44d5..f155094 100644
--- a/dlls/comctl32/trackbar.c
+++ b/dlls/comctl32/trackbar.c
@@ -616,8 +616,7 @@ static int
 TRACKBAR_FillThumb (const TRACKBAR_INFO *infoPtr, HDC hdc, HBRUSH hbrush)
 {
     const RECT *thumb = &infoPtr->rcThumb;
-    const int PointCount = 6;
-    POINT points[PointCount];
+    POINT points[6];
     int PointDepth;
     HBRUSH oldbr;
 
@@ -698,7 +697,7 @@ TRACKBAR_FillThumb (const TRACKBAR_INFO *infoPtr, HDC hdc, HBRUSH hbrush)
 
     oldbr = SelectObject(hdc, hbrush);
     SetPolyFillMode(hdc, WINDING);
-    Polygon(hdc, points, PointCount);
+    Polygon(hdc, points, sizeof(PointCount) / sizeof(PointCount[0]));
     SelectObject(hdc, oldbr);
 
     return PointDepth;
-- 
1.7.11.msysgit.1


More information about the wine-patches mailing list