From 27db170b395f5d2f565880f7d88db90c481e5523 Mon Sep 17 00:00:00 2001 From: Flugente Date: Sun, 19 Jan 2014 14:05:59 +0000 Subject: [PATCH] Fix: overly long loadscreen hints caused crashes when displayed in log. Maximum loadscreen length is now 190 (was 256). git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@6773 3b4a5df2-a311-0410-b5c6-a8a6f20db521 --- Utils/Animated ProgressBar.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Utils/Animated ProgressBar.h b/Utils/Animated ProgressBar.h index d46848cec..195498eb4 100644 --- a/Utils/Animated ProgressBar.h +++ b/Utils/Animated ProgressBar.h @@ -35,7 +35,7 @@ extern PROGRESSBAR *pBar[ MAX_PROGRESSBARS ]; typedef struct { UINT16 uiIndex; - CHAR16 szName[256]; // name of these clothes + CHAR16 szName[190]; // text of the hint. Note that this size + any text it is used in msut be < than CHAR16 pzText[ 200 ]; of VIDEO_OVERLAY_DESC if you display this in any logs UINT32 usFlags; // flags that can be used to determine wether a hint is currently appropriate BOOLEAN fAlreadyShown; // to remember if this hint has already been shown in this game (reset on starting exe) } LOADSCREENHINT_STRUCT;