From 2aa1e71e7743fb707aee0dd3684c5913aeecc875 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Mon, 27 Oct 2008 11:29:21 +0100 Subject: [PATCH] jscript: Avoid a compiler warning. --- dlls/jscript/engine.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/dlls/jscript/engine.c b/dlls/jscript/engine.c index bf82dfab66..ec503f6eaa 100644 --- a/dlls/jscript/engine.c +++ b/dlls/jscript/engine.c @@ -2210,12 +2210,11 @@ HRESULT typeof_expression_eval(exec_ctx_t *ctx, expression_t *_expr, DWORD flags } default: FIXME("unhandled vt %d\n", V_VT(&val)); - hres = E_NOTIMPL; + VariantClear(&val); + return E_NOTIMPL; } VariantClear(&val); - if(FAILED(hres)) - return hres; ret->type = EXPRVAL_VARIANT; V_VT(&ret->u.var) = VT_BSTR;