Fix incorrect format for error message box

Should use the formatted text, not the text with the context and colors concatenated to it.
This commit is contained in:
Kawe Mazidjatari 2023-05-31 23:52:19 +02:00
parent b65e06a390
commit 4c40114106

View File

@ -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);