From 6b6b17a2fbade49024c9b5ba78e2d302465990af Mon Sep 17 00:00:00 2001 From: Thomas Bernard Date: Fri, 22 Jun 2018 12:28:46 +0200 Subject: [PATCH] correctly handle WM_CLOSE --- src/win32screen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/win32screen.c b/src/win32screen.c index 61566fd3..f8f36baf 100644 --- a/src/win32screen.c +++ b/src/win32screen.c @@ -78,7 +78,7 @@ static LRESULT CALLBACK Win32_WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LP break; case WM_CLOSE: Quit_is_required = 1; - break; + return 0; case WM_ERASEBKGND: // the background should be erased break;