- 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.
This commit is contained in:
Christoph Oelckers 2019-10-07 01:11:53 +02:00
parent c95a07d2c4
commit 5d265d2d88

View file

@ -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: