aboutsummaryrefslogtreecommitdiff
path: root/c/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'c/main.cpp')
-rw-r--r--c/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/c/main.cpp b/c/main.cpp
index a72de53..541f524 100644
--- a/c/main.cpp
+++ b/c/main.cpp
@@ -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: ";