mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 12:19:49 +00:00
oleview: Fixed size passed to LoadStringW.
This commit is contained in:
parent
f64fbe2ef3
commit
3f2047c836
1 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue