From 3f4884b20a9539b0220b5e4142d436be9cd51794 Mon Sep 17 00:00:00 2001 From: Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com> Date: Tue, 27 Dec 2022 14:23:54 +0100 Subject: [PATCH] Fix CrashMsg flag '2' means that the generic "Apex crashed" message box gets displayed without any additional information regarding the module. --- r5dev/public/utility/crashhandler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/r5dev/public/utility/crashhandler.cpp b/r5dev/public/utility/crashhandler.cpp index d07d9f06..e66e0578 100644 --- a/r5dev/public/utility/crashhandler.cpp +++ b/r5dev/public/utility/crashhandler.cpp @@ -218,7 +218,7 @@ void CCrashHandler::FormatExceptionAddress(LPCSTR pExceptionAddress) if (GetModuleFileNameExA(GetCurrentProcess(), hCrashedModule, szCrashedModuleFullName, sizeof(szCrashedModuleFullName)) - 1 > 0x1FE) { m_svBuffer.append(fmt::format("\tmodule@{:016X}: 0x{:016X}\n", (void*)hCrashedModule, reinterpret_cast(pModuleBase))); - m_nCrashMsgFlags = 0; // Display the "Apex crashed" message without additional information regarding the module. + m_nCrashMsgFlags = 2; // Display the "Apex crashed" message without additional information regarding the module. return; }