From: Alex Henrie alexhenrie24@gmail.com
--- dlls/hhctrl.ocx/chm.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/dlls/hhctrl.ocx/chm.c b/dlls/hhctrl.ocx/chm.c index 4be86bd165a..520abea7871 100644 --- a/dlls/hhctrl.ocx/chm.c +++ b/dlls/hhctrl.ocx/chm.c @@ -40,11 +40,9 @@ static LPCSTR GetChmString(CHMInfo *chm, DWORD offset)
if(chm->strings_size <= (offset >> BLOCK_BITS)) { new_strings_size = (offset >> BLOCK_BITS) + 1; - new_strings = realloc(chm->strings, new_strings_size * sizeof(char*)); + new_strings = _recalloc(chm->strings, new_strings_size, sizeof(char*)); if(!new_strings) return NULL; - memset(new_strings + chm->strings_size, 0, - (new_strings_size - chm->strings_size) * sizeof(char*)); chm->strings = new_strings; chm->strings_size = new_strings_size; }