comctl32: Fix build with MSVC. (try 2)
Thomas Faber
thfabba at gmx.de
Sat Sep 14 14:26:58 CDT 2013
Sorry... better post something that actually builds
-------------- next part --------------
From 21a82d9761bd0ca190e7bdf1549e38cf94fec3d6 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..9673771 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(points) / sizeof(points[0]));
SelectObject(hdc, oldbr);
return PointDepth;
--
1.7.11.msysgit.1
More information about the wine-patches
mailing list