Module: wine Branch: master Commit: bd5ab1c6cdb6238f6b1d78169e50698de05e61ef URL: https://gitlab.winehq.org/wine/wine/-/commit/bd5ab1c6cdb6238f6b1d78169e50698...
Author: Alexandre Julliard julliard@winehq.org Date: Mon Mar 18 10:57:26 2024 +0100
jscript: Use the correct facility for JScript errors.
---
dlls/jscript/jscript.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/jscript/jscript.h b/dlls/jscript/jscript.h index eb4cf8766a9..1a9446893a1 100644 --- a/dlls/jscript/jscript.h +++ b/dlls/jscript/jscript.h @@ -526,7 +526,7 @@ static inline HRESULT disp_call_value(script_ctx_t *ctx, IDispatch *disp, jsval_ return disp_call_value_with_caller(ctx, disp, vthis, flags, argc, argv, r, &ctx->jscaller->IServiceProvider_iface); }
-#define MAKE_JSERROR(code) MAKE_HRESULT(SEVERITY_ERROR, FACILITY_JSCRIPT, code) +#define MAKE_JSERROR(code) MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, code)
#define JS_E_TO_PRIMITIVE MAKE_JSERROR(IDS_TO_PRIMITIVE) #define JS_E_INVALIDARG MAKE_JSERROR(IDS_INVALID_CALL_ARG) @@ -591,7 +591,7 @@ static inline HRESULT disp_call_value(script_ctx_t *ctx, IDispatch *disp, jsval_
static inline BOOL is_jscript_error(HRESULT hres) { - return HRESULT_FACILITY(hres) == FACILITY_JSCRIPT; + return HRESULT_FACILITY(hres) == FACILITY_CONTROL; }
const char *debugstr_jsval(const jsval_t);