Michael Stefaniuc : jscript: Check the correct variable for the error condition (Smatch).
Module: wine Branch: master Commit: e64df62ef20789782a77ebdafa70ef0da0195080 URL: http://source.winehq.org/git/wine.git/?a=commit;h=e64df62ef20789782a77ebdafa... Author: Michael Stefaniuc <mstefani(a)redhat.de> Date: Sun Aug 30 23:08:40 2009 +0200 jscript: Check the correct variable for the error condition (Smatch). --- dlls/jscript/function.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/jscript/function.c b/dlls/jscript/function.c index 1651aeb..a1d0987 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<length; i++) {
participants (1)
-
Alexandre Julliard