Commit 8e1dbebd authored by Alexandre Julliard's avatar Alexandre Julliard

hhctrl.ocx: Fix a buffer allocation size.

parent cd3af053
...@@ -223,7 +223,8 @@ static WCHAR *FindHTMLHelpSetting(HHInfo *info, const WCHAR *extW) ...@@ -223,7 +223,8 @@ static WCHAR *FindHTMLHelpSetting(HHInfo *info, const WCHAR *extW)
WCHAR *filename; WCHAR *filename;
HRESULT hr; 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); strcpyW(filename, info->pCHMInfo->compiledFile);
strcatW(filename, periodW); strcatW(filename, periodW);
strcatW(filename, extW); strcatW(filename, extW);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment