jscript: Check the correct variable for the error condition (Smatch).

Michael Stefaniuc mstefani at redhat.de
Sun Aug 30 16:08:40 CDT 2009


---
 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 e8bfe75..34109d9 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++) {
-- 
1.6.4.2



More information about the wine-patches mailing list