Signed-off-by: Gabriel Ivăncescu gabrielopcode@gmail.com ---
Needed to pass the tests at the end of the series. Otherwise, OnLeaveScript is not called when an error occurs.
dlls/jscript/jscript.c | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/dlls/jscript/jscript.c b/dlls/jscript/jscript.c index f97c36f..3ec259f 100644 --- a/dlls/jscript/jscript.c +++ b/dlls/jscript/jscript.c @@ -320,12 +320,14 @@ HRESULT leave_script(script_ctx_t *ctx, HRESULT result) if(FAILED(result)) { WARN("%08x\n", result); if(ctx->site && (error = heap_alloc(sizeof(*error)))) { + BOOL enter_notified = ei->enter_notified; HRESULT hres;
error->IActiveScriptError_iface.lpVtbl = &JScriptErrorVtbl; error->ref = 1; error->ei = *ei; memset(ei, 0, sizeof(*ei)); + ei->enter_notified = enter_notified;
hres = IActiveScriptSite_OnScriptError(ctx->site, &error->IActiveScriptError_iface); IActiveScriptError_Release(&error->IActiveScriptError_iface);