mirror of
https://github.com/thunderbrewhq/squall.git
synced 2025-12-12 02:22:30 +00:00
fix(error): fix up stupid error_report::Display mistakes
This commit is contained in:
parent
cab7870726
commit
9722c1e8c3
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue