Mark Harmstone : uxtheme: Fix off-by-one error in array size.
Alexandre Julliard
julliard at wine.codeweavers.com
Mon Apr 6 10:34:18 CDT 2015
Module: wine
Branch: master
Commit: 1a9810b3857487bba14f4a50f6de183a25b5f7a9
URL: http://source.winehq.org/git/wine.git/?a=commit;h=1a9810b3857487bba14f4a50f6de183a25b5f7a9
Author: Mark Harmstone <hellas at burntcomma.com>
Date: Sat Apr 4 11:35:43 2015 +0100
uxtheme: Fix off-by-one error in array size.
---
dlls/uxtheme/msstyles.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/uxtheme/msstyles.c b/dlls/uxtheme/msstyles.c
index 8205a12..780751b 100644
--- a/dlls/uxtheme/msstyles.c
+++ b/dlls/uxtheme/msstyles.c
@@ -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;
};
More information about the wine-cvs
mailing list