[Exception] Fix error message
This commit is contained in:
parent
997165d012
commit
e5bca7654b
@ -66,7 +66,7 @@ namespace Components
|
|||||||
return EXCEPTION_CONTINUE_EXECUTION;
|
return EXCEPTION_CONTINUE_EXECUTION;
|
||||||
}
|
}
|
||||||
|
|
||||||
const char* errorStr;
|
std::string errorStr;
|
||||||
if (ExceptionInfo->ExceptionRecord->ExceptionCode == EXCEPTION_STACK_OVERFLOW)
|
if (ExceptionInfo->ExceptionRecord->ExceptionCode == EXCEPTION_STACK_OVERFLOW)
|
||||||
{
|
{
|
||||||
errorStr = "Termination because of a stack overflow.";
|
errorStr = "Termination because of a stack overflow.";
|
||||||
@ -90,7 +90,7 @@ namespace Components
|
|||||||
}
|
}
|
||||||
}*/
|
}*/
|
||||||
|
|
||||||
MessageBoxA(nullptr, errorStr, "ERROR", MB_ICONERROR);
|
MessageBoxA(nullptr, errorStr.data(), "ERROR", MB_ICONERROR);
|
||||||
|
|
||||||
if (doFullDump)
|
if (doFullDump)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user