aboutsummaryrefslogtreecommitdiff
path: root/c/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'c/main.cpp')
-rw-r--r--c/main.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/c/main.cpp b/c/main.cpp
index 00c9051..c3c555b 100644
--- a/c/main.cpp
+++ b/c/main.cpp
@@ -65,15 +65,15 @@ void OnTerminate() noexcept
try {
std::rethrow_exception(std::current_exception());
} catch (const term_t& t) {
- std::wstring wstr;
- if (PlString(t, &wstr))
- TerminateMsg(L"a Prolog exception", wstr.c_str());
+ std::wstring ws;
+ if (PlString(t, &ws))
+ TerminateMsg(L"a Prolog exception", ws.c_str());
else
TerminateMsg(L"a Prolog exception", NULL);
} catch (const Win32Error& e) {
TerminateMsg(L"a Windows error", e.WhatW());
} catch (const std::exception& e) {
- TerminateMsg(L"an exception", WstrFromSz(e.what()).c_str());
+ TerminateMsg(L"an exception", WsFromSz(e.what()).c_str());
} catch (...) {
TerminateMsg(L"an exception", NULL);
}