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

This commit is contained in:
Mark Harmstone 2015-04-04 11:35:43 +01:00 committed by Alexandre Julliard
parent ed0c6746dd
commit 1a9810b385
1 changed files with 2 additions and 2 deletions

View File

@ -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;
};