- also put the Windows system specific exit handlers into atexit's list

Again, these have no place in the game's own uninit code.
This commit is contained in:
Christoph Oelckers 2019-10-01 00:51:14 +02:00
parent eae593b1f5
commit 9f15efc5f5

View file

@ -965,7 +965,7 @@ void DoMain (HINSTANCE hInstance)
} }
else else
{ {
atterm (UnWTS); atexit (UnWTS);
} }
} }
} }
@ -977,7 +977,7 @@ void DoMain (HINSTANCE hInstance)
WinHeight = cRect.bottom; WinHeight = cRect.bottom;
CoInitialize (NULL); CoInitialize (NULL);
atterm (UnCOM); atexit (UnCOM);
C_InitConsole (((WinWidth / 8) + 2) * 8, (WinHeight / 12) * 8, false); C_InitConsole (((WinWidth / 8) + 2) * 8, (WinHeight / 12) * 8, false);