Commit 86283b31 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

vbscript: Fail to set non-object values with DISPATCH_PROPERTYPUTREF flag.

parent 4bca1665
......@@ -116,6 +116,9 @@ static HRESULT get_propput_arg(script_ctx_t *ctx, const DISPPARAMS *dp, WORD fla
*v = value;
*is_owned = TRUE;
}
}else if(!(flags & DISPATCH_PROPERTYPUT)) {
WARN("%s can't be assigned without DISPATCH_PROPERTYPUT flag\n", debugstr_variant(v));
return DISP_E_EXCEPTION;
}
return S_OK;
......
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