Commit e12c8c0c authored by Thomas Faber's avatar Thomas Faber Committed by Alexandre Julliard

comctl32: Fix build with MSVC.

parent 29aab5df
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment