Jacek Caban : vbscript: Fixed stack reallocation.
Alexandre Julliard
julliard at winehq.org
Mon Jan 16 13:01:32 CST 2012
Module: wine
Branch: master
Commit: 1791cdaea843dc5731850f323a854842e53d5088
URL: http://source.winehq.org/git/wine.git/?a=commit;h=1791cdaea843dc5731850f323a854842e53d5088
Author: Jacek Caban <jacek at 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;
More information about the wine-cvs
mailing list