vbscript: Fixed stack reallocation.

This commit is contained in:
Jacek Caban 2012-01-16 12:41:00 +01:00 committed by Alexandre Julliard
parent c53529b48d
commit 1791cdaea8
1 changed files with 1 additions and 1 deletions

View File

@ -260,7 +260,7 @@ static HRESULT stack_push(exec_ctx_t *ctx, VARIANT *v)
if(ctx->stack_size == ctx->top) {
VARIANT *new_stack;
new_stack = heap_realloc(ctx->stack, ctx->stack_size*2);
new_stack = heap_realloc(ctx->stack, ctx->stack_size*2*sizeof(*ctx->stack));
if(!new_stack) {
VariantClear(v);
return E_OUTOFMEMORY;