[PATCH 01/11] jscript: Return the failure code if the value invoke failed.

Gabriel Ivăncescu gabrielopcode at gmail.com
Mon Sep 20 09:46:07 CDT 2021


Signed-off-by: Gabriel Ivăncescu <gabrielopcode at gmail.com>
---

This is needed for the mshtml builtin object behavior tests later to pass
correctly (the `f(document, ["style"]);` test). It makes no sense to ignore
it anyway.

 dlls/jscript/dispex.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/dlls/jscript/dispex.c b/dlls/jscript/dispex.c
index e5d711a..c7e4ba9 100644
--- a/dlls/jscript/dispex.c
+++ b/dlls/jscript/dispex.c
@@ -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;
 
-- 
2.31.1




More information about the wine-devel mailing list