Jacek Caban : jscript: Initialize VARIANT before passing it to disp_propget .
Alexandre Julliard
julliard at winehq.org
Mon Dec 12 12:25:55 CST 2011
Module: wine
Branch: master
Commit: 64ef20ce5332f5601a6afe7f12f9a538e45d6475
URL: http://source.winehq.org/git/wine.git/?a=commit;h=64ef20ce5332f5601a6afe7f12f9a538e45d6475
Author: Jacek Caban <jacek at codeweavers.com>
Date: Mon Dec 12 14:44:20 2011 +0100
jscript: Initialize VARIANT before passing it to disp_propget.
---
dlls/jscript/engine.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/dlls/jscript/engine.c b/dlls/jscript/engine.c
index 0bc5a5b..da02052 100644
--- a/dlls/jscript/engine.c
+++ b/dlls/jscript/engine.c
@@ -1579,6 +1579,7 @@ static HRESULT interp_member(exec_ctx_t *ctx)
hres = disp_get_id(ctx->parser->script, obj, arg, 0, &id);
if(SUCCEEDED(hres)) {
+ V_VT(&v) = VT_EMPTY;
hres = disp_propget(ctx->parser->script, obj, id, &v, &ctx->ei, NULL/*FIXME*/);
}else if(hres == DISP_E_UNKNOWNNAME) {
V_VT(&v) = VT_EMPTY;
More information about the wine-cvs
mailing list