Skip to content
Snippets Groups Projects
Commit 434700bf authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard
Browse files

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

parent e4bfd4e0
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment