Module: wine Branch: master Commit: 1791cdaea843dc5731850f323a854842e53d5088 URL: http://source.winehq.org/git/wine.git/?a=commit;h=1791cdaea843dc5731850f323a...
Author: Jacek Caban jacek@codeweavers.com Date: Mon Jan 16 12:41:00 2012 +0100
vbscript: Fixed stack reallocation.
---
dlls/vbscript/interp.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/vbscript/interp.c b/dlls/vbscript/interp.c index cca5eb9..4be1d43 100644 --- a/dlls/vbscript/interp.c +++ b/dlls/vbscript/interp.c @@ -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;