diff --git a/src/win32/i_main.cpp b/src/win32/i_main.cpp index 33ac6f92d7..e8c55f0434 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);