Module: wine Branch: master Commit: e12c8c0ce93a22bec67d0926faf211456b8f5442 URL: http://source.winehq.org/git/wine.git/?a=commit;h=e12c8c0ce93a22bec67d0926fa...
Author: Thomas Faber thfabba@gmx.de Date: Sat Sep 14 21:20:53 2013 +0200
comctl32: Fix build with MSVC.
---
dlls/comctl32/trackbar.c | 5 ++--- 1 files 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;