From 5d265d2d88ffe4a03a82e24d66148ec99e356d94 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Mon, 7 Oct 2019 01:11:53 +0200 Subject: [PATCH] - 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. --- src/win32/i_input.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/win32/i_input.cpp b/src/win32/i_input.cpp index 3846884ea..1e596b39b 100644 --- a/src/win32/i_input.cpp +++ b/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: