jscript: Initialize VARIANT before passing it to disp_propget.
This commit is contained in:
parent
2c8e8948df
commit
64ef20ce53
|
@ -1579,6 +1579,7 @@ static HRESULT interp_member(exec_ctx_t *ctx)
|
||||||
|
|
||||||
hres = disp_get_id(ctx->parser->script, obj, arg, 0, &id);
|
hres = disp_get_id(ctx->parser->script, obj, arg, 0, &id);
|
||||||
if(SUCCEEDED(hres)) {
|
if(SUCCEEDED(hres)) {
|
||||||
|
V_VT(&v) = VT_EMPTY;
|
||||||
hres = disp_propget(ctx->parser->script, obj, id, &v, &ctx->ei, NULL/*FIXME*/);
|
hres = disp_propget(ctx->parser->script, obj, id, &v, &ctx->ei, NULL/*FIXME*/);
|
||||||
}else if(hres == DISP_E_UNKNOWNNAME) {
|
}else if(hres == DISP_E_UNKNOWNNAME) {
|
||||||
V_VT(&v) = VT_EMPTY;
|
V_VT(&v) = VT_EMPTY;
|
||||||
|
|
Loading…
Reference in New Issue