Commit d39e3d87 authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

jscript: Fix allocation size in BindFunction_call.

parent d5a10e2d
......@@ -836,7 +836,7 @@ static HRESULT BindFunction_call(script_ctx_t *ctx, FunctionInstance *func, IDis
call_argc = function->argc + 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)
return E_OUTOFMEMORY;
......
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