Fix CrashMsg flag

'2' means that the generic "Apex crashed" message box gets displayed without any additional information regarding the module.
This commit is contained in:
Kawe Mazidjatari 2022-12-27 14:23:54 +01:00
parent b48f028b5a
commit 3f4884b20a

View File

@ -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<uintptr_t>(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;
}