Skip to content

Commit

Permalink
- also put the Windows system specific exit handlers into atexit's list
Browse files Browse the repository at this point in the history
Again, these have no place in the game's own uninit code.
  • Loading branch information
coelckers committed Sep 30, 2019
1 parent eae593b commit 9f15efc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/win32/i_main.cpp
Expand Up @@ -965,7 +965,7 @@ void DoMain (HINSTANCE hInstance)
}
else
{
atterm (UnWTS);
atexit (UnWTS);
}
}
}
Expand All @@ -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);

Expand Down

0 comments on commit 9f15efc

Please sign in to comment.