From 495d6af67c172840c7df5000ce74aaa26cea2e5a Mon Sep 17 00:00:00 2001 From: Takashi Kato Date: Thu, 23 Jan 2025 15:06:34 +0100 Subject: [PATCH] Fixing string creation during Windows error message formatting --- src/os/win/win_util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/os/win/win_util.c b/src/os/win/win_util.c index 4425fa391..0286ea9ae 100644 --- a/src/os/win/win_util.c +++ b/src/os/win/win_util.c @@ -126,7 +126,7 @@ static SgObject get_last_error(DWORD e) MSG_SIZE, 0, NULL); - if (size == 0) return SG_STRING("*no error message available*"); + if (size == 0) return SG_MAKE_STRING("*no system error message available*"); if (size > 2 && msg[size - 2] == '\r') { msg[size - 2] = 0;