diff options
Diffstat (limited to 'c/main.cpp')
-rw-r--r-- | c/main.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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); } |