Commit 434700bf authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

vbscript: Init destination before passing it to VariantCopy in add_dynamic_var.

parent e4bfd4e0
......@@ -229,6 +229,7 @@ static HRESULT add_dynamic_var(exec_ctx_t *ctx, const WCHAR *name, BOOL is_const
if(own_val) {
new_var->v = *val;
}else {
V_VT(&new_var->v) = VT_EMPTY;
hres = VariantCopy(&new_var->v, val);
if(FAILED(hres))
return hres;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment