Skip to content

Commit

Permalink
- don't exit from within a window proc.
Browse files Browse the repository at this point in the history
This should be handled by the message pump evaluating WM_QUIT which is how Windows suggests this to be done.
  • Loading branch information
coelckers committed Oct 6, 2019
1 parent c95a07d commit 5d265d2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/win32/i_input.cpp
Expand Up @@ -423,8 +423,7 @@ LRESULT CALLBACK WndProc (HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
{
case WM_DESTROY:
SetPriorityClass (GetCurrentProcess(), NORMAL_PRIORITY_CLASS);
//PostQuitMessage (0);
exit(0);
PostQuitMessage (0);
break;

case WM_HOTKEY:
Expand Down

0 comments on commit 5d265d2

Please sign in to comment.