From e5bca7654ba35a381920bfdd43322f5500e9bc17 Mon Sep 17 00:00:00 2001 From: momo5502 Date: Tue, 2 May 2017 13:37:41 +0200 Subject: [PATCH] [Exception] Fix error message --- src/Components/Modules/Exception.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Components/Modules/Exception.cpp b/src/Components/Modules/Exception.cpp index 3479dbc7..99d33b80 100644 --- a/src/Components/Modules/Exception.cpp +++ b/src/Components/Modules/Exception.cpp @@ -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) {