From 3f2047c836c27a183f438247cf5033d2d519bf39 Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Mon, 27 Oct 2008 22:12:03 +0100 Subject: [PATCH] oleview: Fixed size passed to LoadStringW. --- programs/oleview/interface.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/programs/oleview/interface.c b/programs/oleview/interface.c index 9350cea23b8..2459b74bb30 100644 --- a/programs/oleview/interface.c +++ b/programs/oleview/interface.c @@ -95,9 +95,9 @@ INT_PTR CALLBACK InterfaceViewerProc(HWND hDlgWnd, UINT uMsg, IUnknown_Release(unk); if(hRes == S_OK) LoadString(globals.hMainInst, IDS_FALSE, wszBuf, - sizeof(WCHAR[MAX_LOAD_STRING])); + sizeof(wszBuf)/sizeof(wszBuf[0])); else LoadString(globals.hMainInst, IDS_TRUE, wszBuf, - sizeof(WCHAR[MAX_LOAD_STRING])); + sizeof(wszBuf)/sizeof(wszBuf[0])); hObject = GetDlgItem(hDlgWnd, IDC_ISDIRTY); SetWindowText(hObject, wszBuf); return TRUE; @@ -106,7 +106,7 @@ INT_PTR CALLBACK InterfaceViewerProc(HWND hDlgWnd, UINT uMsg, IPersistStream_GetSizeMax((IPersistStream *)unk, &size); IUnknown_Release(unk); LoadString(globals.hMainInst, IDS_BYTES, wszBuf, - sizeof(WCHAR[MAX_LOAD_STRING])); + sizeof(wszBuf)/sizeof(wszBuf[0])); wsprintfW(wszSize, wszFormat, U(size).LowPart, wszBuf); hObject = GetDlgItem(hDlgWnd, IDC_GETSIZEMAX); SetWindowText(hObject, wszSize);