Skip to content

Commit

Permalink
- don't throw exceptions before the system isn't initialized
Browse files Browse the repository at this point in the history
If the window cannot be opened this has no way to report the problem. In this case a message box is needed.
  • Loading branch information
coelckers committed Sep 30, 2019
1 parent 42a54ef commit e7c388d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/win32/i_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit e7c388d

Please sign in to comment.