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:
parent
d5a10e2d28
commit
d39e3d8762
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue