jscript: Fix some errors detected by Valgrind.
This commit is contained in:
parent
84abbd64ae
commit
a6bdc47152
@ -1499,7 +1499,7 @@ HRESULT new_expression_eval(exec_ctx_t *ctx, expression_t *_expr, DWORD flags, j
|
|||||||
HRESULT call_expression_eval(exec_ctx_t *ctx, expression_t *_expr, DWORD flags, jsexcept_t *ei, exprval_t *ret)
|
HRESULT call_expression_eval(exec_ctx_t *ctx, expression_t *_expr, DWORD flags, jsexcept_t *ei, exprval_t *ret)
|
||||||
{
|
{
|
||||||
call_expression_t *expr = (call_expression_t*)_expr;
|
call_expression_t *expr = (call_expression_t*)_expr;
|
||||||
VARIANT func, var;
|
VARIANT var;
|
||||||
exprval_t exprval;
|
exprval_t exprval;
|
||||||
DISPPARAMS dp;
|
DISPPARAMS dp;
|
||||||
HRESULT hres;
|
HRESULT hres;
|
||||||
@ -1520,7 +1520,7 @@ HRESULT call_expression_eval(exec_ctx_t *ctx, expression_t *_expr, DWORD flags,
|
|||||||
V_VT(&var) = VT_EMPTY;
|
V_VT(&var) = VT_EMPTY;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
FIXME("unimplemented type %d\n", V_VT(&func));
|
FIXME("unimplemented type %d\n", exprval.type);
|
||||||
hres = E_NOTIMPL;
|
hres = E_NOTIMPL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -191,7 +191,6 @@ static HRESULT invoke_constructor(FunctionInstance *function, LCID lcid, DISPPAR
|
|||||||
VARIANT *retv, jsexcept_t *ei, IServiceProvider *caller)
|
VARIANT *retv, jsexcept_t *ei, IServiceProvider *caller)
|
||||||
{
|
{
|
||||||
DispatchEx *this_obj;
|
DispatchEx *this_obj;
|
||||||
VARIANT var;
|
|
||||||
HRESULT hres;
|
HRESULT hres;
|
||||||
|
|
||||||
hres = create_object(function->dispex.ctx, &function->dispex, &this_obj);
|
hres = create_object(function->dispex.ctx, &function->dispex, &this_obj);
|
||||||
@ -203,7 +202,6 @@ static HRESULT invoke_constructor(FunctionInstance *function, LCID lcid, DISPPAR
|
|||||||
if(FAILED(hres))
|
if(FAILED(hres))
|
||||||
return hres;
|
return hres;
|
||||||
|
|
||||||
VariantClear(&var);
|
|
||||||
V_VT(retv) = VT_DISPATCH;
|
V_VT(retv) = VT_DISPATCH;
|
||||||
V_DISPATCH(retv) = (IDispatch*)_IDispatchEx_(this_obj);
|
V_DISPATCH(retv) = (IDispatch*)_IDispatchEx_(this_obj);
|
||||||
return S_OK;
|
return S_OK;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user