From 9f15efc5f51b7d6c99fa2fd11886e683a55220b7 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Tue, 1 Oct 2019 00:51:14 +0200 Subject: [PATCH] - also put the Windows system specific exit handlers into atexit's list Again, these have no place in the game's own uninit code. --- src/win32/i_main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/win32/i_main.cpp b/src/win32/i_main.cpp index 33ac6f92d..e8c55f043 100644 --- a/src/win32/i_main.cpp +++ b/src/win32/i_main.cpp @@ -965,7 +965,7 @@ void DoMain (HINSTANCE hInstance) } else { - atterm (UnWTS); + atexit (UnWTS); } } } @@ -977,7 +977,7 @@ void DoMain (HINSTANCE hInstance) WinHeight = cRect.bottom; CoInitialize (NULL); - atterm (UnCOM); + atexit (UnCOM); C_InitConsole (((WinWidth / 8) + 2) * 8, (WinHeight / 12) * 8, false);