Skip to content
Permalink
Browse files

- don't exit from within a window proc.

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 5d265d2d88ffe4a03a82e24d66148ec99e356d94
Showing with 1 addition and 2 deletions.
  1. +1 −2 src/win32/i_input.cpp
@@ -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:

0 comments on commit 5d265d2

Please sign in to comment.
You can’t perform that action at this time.