[Exception] Fix error message

This commit is contained in:
momo5502 2017-05-02 13:37:41 +02:00
parent 997165d012
commit e5bca7654b

View File

@ -66,7 +66,7 @@ namespace Components
return EXCEPTION_CONTINUE_EXECUTION;
}
const char* errorStr;
std::string errorStr;
if (ExceptionInfo->ExceptionRecord->ExceptionCode == EXCEPTION_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)
{