Alexandre Julliard : hhctrl.ocx: Fix a buffer allocation size.
Module: wine Branch: master Commit: 8e1dbebdb0e7b834fad53b4ea3d3cd349c34fbec URL: http://source.winehq.org/git/wine.git/?a=commit;h=8e1dbebdb0e7b834fad53b4ea3... Author: Alexandre Julliard <julliard(a)winehq.org> Date: Mon Feb 13 12:28:32 2012 +0100 hhctrl.ocx: Fix a buffer allocation size. --- dlls/hhctrl.ocx/chm.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/dlls/hhctrl.ocx/chm.c b/dlls/hhctrl.ocx/chm.c index e6f955d..9d1f91e 100644 --- a/dlls/hhctrl.ocx/chm.c +++ b/dlls/hhctrl.ocx/chm.c @@ -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);
participants (1)
-
Alexandre Julliard