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

This commit is contained in:
Michael Stefaniuc 2009-08-30 23:08:40 +02:00 committed by Alexandre Julliard
parent ea71c9e5fd
commit e64df62ef2
1 changed files with 1 additions and 1 deletions

View File

@ -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++) {