mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 10:41:12 +00:00
hhctrl.ocx: Fix a buffer allocation size.
This commit is contained in:
parent
cd3af0531b
commit
8e1dbebdb0
1 changed files with 2 additions and 1 deletions
|
@ -223,7 +223,8 @@ static WCHAR *FindHTMLHelpSetting(HHInfo *info, const WCHAR *extW)
|
|||
WCHAR *filename;
|
||||
HRESULT hr;
|
||||
|
||||
filename = heap_alloc(strlenW(info->pCHMInfo->compiledFile)+strlenW(periodW)+strlenW(extW)+1);
|
||||
filename = heap_alloc( (strlenW(info->pCHMInfo->compiledFile)
|
||||
+ strlenW(periodW) + strlenW(extW) + 1) * sizeof(WCHAR) );
|
||||
strcpyW(filename, info->pCHMInfo->compiledFile);
|
||||
strcatW(filename, periodW);
|
||||
strcatW(filename, extW);
|
||||
|
|
Loading…
Reference in a new issue