From 145cc3f7d3c90ff4426452bebf6db3201792f8fb Mon Sep 17 00:00:00 2001 From: codemastr Date: Wed, 8 Aug 2001 19:31:58 +0000 Subject: [PATCH] Fixed a win2000 bug causing a crash --- Changes | 2 ++ src/win32/Win32GUI.c | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Changes b/Changes index c3008dbcf..9d0db21fd 100644 --- a/Changes +++ b/Changes @@ -793,3 +793,5 @@ seen. gmtime warning still there - /who fixes regarding +I +H and crap - Preparation for beta2 - Fixed sts on crack win32 code +- Fixed a win2000 bug causing Unreal to crash on the credits dialog, thanks to llthangel and WildChild for + helping fix the bug diff --git a/src/win32/Win32GUI.c b/src/win32/Win32GUI.c index 39296b532..92fdadad9 100644 --- a/src/win32/Win32GUI.c +++ b/src/win32/Win32GUI.c @@ -1268,11 +1268,11 @@ LRESULT CALLBACK ColorDLG(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam) /* find how big a buffer expansion we need for RTF transformation */ int CountRTFSize(char *buffer) { - int size; + int size = 0; short bold = 0, uline = 0, reverse = 0; char *buf = buffer; - for (; *buf; buf++) { + for (; *buf; buf++, size++) { if (*buf == '{' || *buf == '}' || *buf == '\\') { size++; continue;