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

This commit is contained in:
Jacek Caban 2015-03-03 14:40:59 +01:00 committed by Alexandre Julliard
parent 4bca1665c4
commit 86283b31db
1 changed files with 3 additions and 0 deletions

View File

@ -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;