jscript: Don't use to_object for nullDisp in Object function.

This commit is contained in:
Jacek Caban 2010-10-01 13:54:42 +02:00 committed by Alexandre Julliard
parent a15301a0bc
commit 93e6ca8747
1 changed files with 1 additions and 1 deletions

View File

@ -186,7 +186,7 @@ static HRESULT ObjectConstr_value(script_ctx_t *ctx, vdisp_t *jsthis, WORD flags
if(arg_cnt(dp)) {
VARIANT *arg = get_arg(dp,0);
if(V_VT(arg) != VT_EMPTY && V_VT(arg) != VT_NULL) {
if(V_VT(arg) != VT_EMPTY && V_VT(arg) != VT_NULL && (V_VT(arg) != VT_DISPATCH || V_DISPATCH(arg))) {
IDispatch *disp;
hres = to_object(ctx, arg, &disp);