aboutsummaryrefslogtreecommitdiff
path: root/c/main.cpp
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2022-08-28 00:09:09 +0200
committerJohn Ankarström <john@ankarstrom.se>2022-08-28 00:09:09 +0200
commit90c253dcfeb16a5972f913449422e3b5eabd92b8 (patch)
tree5451c394796654e970c7d7093e973f2c3e8ac18e /c/main.cpp
parentfa9aa6a4418c77ac2a7c03cc73cfecc6caddb4ad (diff)
downloadEpisodeBrowser-90c253dcfeb16a5972f913449422e3b5eabd92b8.tar.gz
Set termination handler for fetch thread.
MSVC has separate handlers per thread.
Diffstat (limited to 'c/main.cpp')
-rw-r--r--c/main.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/c/main.cpp b/c/main.cpp
index 7608f05..2af8030 100644
--- a/c/main.cpp
+++ b/c/main.cpp
@@ -25,11 +25,7 @@
* need be. */
/* Exit gracefully on uncaught exception. */
-static auto _ = std::set_terminate([]() noexcept
-{
- ShowException(L"Episode Browser was terminated due to an error: %s", L"Fatal Error", MB_ICONERROR);
- _Exit(1);
-});
+static auto _ = SET_TERMINATE;
/* Looked-up constants. */
int g_dpi = 96;