Commit 1a9810b3 authored by Mark Harmstone's avatar Mark Harmstone Committed by Alexandre Julliard

uxtheme: Fix off-by-one error in array size.

parent ed0c6746
......@@ -674,8 +674,8 @@ static PTHEME_PROPERTY MSSTYLES_AddMetric(PTHEME_FILE tf, int iPropertyPrimitive
struct PARSECOLORSTATE
{
int colorCount;
int colorElements[TMT_LASTCOLOR-TMT_FIRSTCOLOR];
COLORREF colorRgb[TMT_LASTCOLOR-TMT_FIRSTCOLOR];
int colorElements[TMT_LASTCOLOR-TMT_FIRSTCOLOR+1];
COLORREF colorRgb[TMT_LASTCOLOR-TMT_FIRSTCOLOR+1];
int captionColors;
};
......
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