Rob Shearman : msrle32: Fix the character count passed into LoadStringW in About.
Alexandre Julliard
julliard at winehq.org
Fri Feb 15 05:35:59 CST 2008
Module: wine
Branch: master
Commit: 9ca4680fce20e556dbf445e9b6c0e07f20905b27
URL: http://source.winehq.org/git/wine.git/?a=commit;h=9ca4680fce20e556dbf445e9b6c0e07f20905b27
Author: Rob Shearman <rob at codeweavers.com>
Date: Thu Feb 14 14:38:49 2008 +0000
msrle32: Fix the character count passed into LoadStringW in About.
---
dlls/msrle32/msrle32.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/msrle32/msrle32.c b/dlls/msrle32/msrle32.c
index bf611dd..4f0226a 100644
--- a/dlls/msrle32/msrle32.c
+++ b/dlls/msrle32/msrle32.c
@@ -1225,8 +1225,8 @@ static LRESULT About(CodecInfo *pi, HWND hWnd)
/* pre-condition */
assert(MSRLE32_hModule != 0);
- LoadStringW(MSRLE32_hModule, IDS_NAME, szTitle, sizeof(szTitle));
- LoadStringW(MSRLE32_hModule, IDS_ABOUT, szAbout, sizeof(szAbout));
+ LoadStringW(MSRLE32_hModule, IDS_NAME, szTitle, sizeof(szTitle)/sizeof(szTitle[0]));
+ LoadStringW(MSRLE32_hModule, IDS_ABOUT, szAbout, sizeof(szAbout)/sizeof(szAbout[0]));
MessageBoxW(hWnd, szAbout, szTitle, MB_OK|MB_ICONINFORMATION);
More information about the wine-cvs
mailing list