From 7a307ff8a9cf0d138951eb88785252501e62894f 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 6716ea491..625af2a11 100644 --- a/src/win32/i_input.cpp +++ b/src/win32/i_input.cpp @@ -450,8 +450,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: