From e64df62ef20789782a77ebdafa70ef0da0195080 Mon Sep 17 00:00:00 2001 From: Michael Stefaniuc Date: Sun, 30 Aug 2009 23:08:40 +0200 Subject: [PATCH] jscript: Check the correct variable for the error condition (Smatch). --- dlls/jscript/function.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/jscript/function.c b/dlls/jscript/function.c index 1651aebedce..a1d09876f3b 100644 --- a/dlls/jscript/function.c +++ b/dlls/jscript/function.c @@ -363,7 +363,7 @@ static HRESULT array_to_args(DispatchEx *arg_array, LCID lcid, jsexcept_t *ei, I return hres; argv = heap_alloc(length * sizeof(VARIANT)); - if(FAILED(hres)) + if(!argv) return E_OUTOFMEMORY; for(i=0; i