fix(error): fix up stupid error_report::Display mistakes

This commit is contained in:
phaneron 2024-11-22 02:49:19 -05:00
parent cab7870726
commit 9722c1e8c3

View file

@ -75,7 +75,7 @@ class error_report {
// Output text to debugger // Output text to debugger
OutputDebugString(reinterpret_cast<LPCSTR>(this->m_text.Ptr())); OutputDebugString(reinterpret_cast<LPCSTR>(this->m_text.Ptr()));
// Title // Title
const char* caption = recoverable ? "Error" : "Unrecoverable error"; const char* caption = this->m_recoverable ? "Error" : "Unrecoverable error";
// Icon/type // Icon/type
UINT icon = this->m_recoverable ? MB_ICONWARNING : MB_ICONERROR; UINT icon = this->m_recoverable ? MB_ICONWARNING : MB_ICONERROR;
MessageBox(nullptr, reinterpret_cast<LPCSTR>(this->m_text.Ptr()), caption, icon); MessageBox(nullptr, reinterpret_cast<LPCSTR>(this->m_text.Ptr()), caption, icon);