- 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
1 changed files with 2 additions and 2 deletions

View File

@ -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);