From 90c253dcfeb16a5972f913449422e3b5eabd92b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Sun, 28 Aug 2022 00:09:09 +0200 Subject: Set termination handler for fetch thread. MSVC has separate handlers per thread. --- c/main.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'c/main.cpp') 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; -- cgit v1.2.3