diff options
Diffstat (limited to 'c/main.cpp')
-rw-r--r-- | c/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -60,7 +60,7 @@ void OnTerminate() noexcept "Fatal Error", MB_ICONERROR); } catch (Win32Error& e) { std::basic_string<TCHAR> tstr = TEXT("The program was terminated due to a Windows error: "); - tstr += e.twhat(); + tstr += e.what<TCHAR>(); MessageBox(NULL, tstr.c_str(), TEXT("Fatal Error"), MB_ICONERROR); } catch (std::exception& e) { std::string str = "The program was terminated due to an exception: "; |