jscript: Return the failure code if the value invoke failed.

Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Gabriel Ivăncescu 2021-09-20 17:46:07 +03:00 committed by Alexandre Julliard
parent 7f6d723e50
commit 749c5d55e5
1 changed files with 2 additions and 0 deletions

View File

@ -2143,6 +2143,8 @@ HRESULT disp_call_value(script_ctx_t *ctx, IDispatch *disp, IDispatch *jsthis, W
if(args != buf)
heap_free(args);
if(FAILED(hres))
return hres;
if(!r)
return S_OK;