jscript: Fix allocation size in BindFunction_call.

Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Hans Leidekker 2020-10-27 11:31:40 +01:00 committed by Alexandre Julliard
parent d5a10e2d28
commit d39e3d8762
1 changed files with 1 additions and 1 deletions

View File

@ -836,7 +836,7 @@ static HRESULT BindFunction_call(script_ctx_t *ctx, FunctionInstance *func, IDis
call_argc = function->argc + argc; call_argc = function->argc + argc;
if(call_argc) { if(call_argc) {
call_args = heap_alloc(function->argc * sizeof(*function->args)); call_args = heap_alloc(call_argc * sizeof(*call_args));
if(!call_args) if(!call_args)
return E_OUTOFMEMORY; return E_OUTOFMEMORY;