From 4c40114106b5740ebcf5c4ea45e1ae37bbd97a66 Mon Sep 17 00:00:00 2001 From: Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com> Date: Wed, 31 May 2023 23:52:19 +0200 Subject: [PATCH] Fix incorrect format for error message box Should use the formatted text, not the text with the context and colors concatenated to it. --- r5dev/core/logger.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/r5dev/core/logger.cpp b/r5dev/core/logger.cpp index d0bd2e6c..62103dbb 100644 --- a/r5dev/core/logger.cpp +++ b/r5dev/core/logger.cpp @@ -309,7 +309,7 @@ void EngineLoggerSink(LogType_t logType, LogLevel_t logLevel, eDLL_T context, if (exitCode) // Terminate the process if an exit code was passed. { - if (MessageBoxA(NULL, Format("%s- %s", pszUpTime, message.c_str()).c_str(), + if (MessageBoxA(NULL, Format("%s- %s", pszUpTime, formatted.c_str()).c_str(), "SDK Error", MB_ICONERROR | MB_OK)) { TerminateProcess(GetCurrentProcess(), exitCode);