From e7c388dccd863b37fbf8f25f639ebfaca76cc876 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Tue, 1 Oct 2019 00:42:21 +0200 Subject: [PATCH] - don't throw exceptions before the system isn't initialized If the window cannot be opened this has no way to report the problem. In this case a message box is needed. --- src/win32/i_main.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/win32/i_main.cpp b/src/win32/i_main.cpp index f79722668..33ac6f92d 100644 --- a/src/win32/i_main.cpp +++ b/src/win32/i_main.cpp @@ -939,7 +939,10 @@ void DoMain (HINSTANCE hInstance) NULL); if (!Window) - I_FatalError ("Could not open window"); + { + MessageBoc(nullptr, "Fatal", "Unable to create main window", MB_ICONEXCLAMATION|MB_OK); + exit(-1); + } if (kernel != NULL) {