From 7389aca55c9c4e026d016445420a0dffba1f3b8e Mon Sep 17 00:00:00 2001 From: Calvin Rose Date: Mon, 28 Sep 2026 16:23:49 -0500 Subject: [PATCH] Move to FormatMessageA instead of the generic macro. --- src/core/os.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/core/os.c b/src/core/os.c index afa6b886..4569893c 100644 --- a/src/core/os.c +++ b/src/core/os.c @@ -1342,13 +1342,13 @@ static Janet os_execute_impl(int32_t argc, Janet *argv, JanetExecuteMode mode) { if (cp_failed) { char msgbuf[256]; msgbuf[0] = '\0'; - FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS, - NULL, - cp_error_code, - MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), - msgbuf, - sizeof(msgbuf), - NULL); + FormatMessageA(FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS, + NULL, + cp_error_code, + MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), + msgbuf, + sizeof(msgbuf), + NULL); if (!*msgbuf) snprintf(msgbuf, sizeof(msgbuf), "%" PRIu32, (uint32_t) cp_error_code); char *c = msgbuf; while (*c) {