correctly handle WM_CLOSE

This commit is contained in:
Thomas Bernard 2018-06-22 12:28:46 +02:00
parent 3e32bc0c39
commit 6b6b17a2fb

View File

@ -78,7 +78,7 @@ static LRESULT CALLBACK Win32_WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LP
break; break;
case WM_CLOSE: case WM_CLOSE:
Quit_is_required = 1; Quit_is_required = 1;
break; return 0;
case WM_ERASEBKGND: case WM_ERASEBKGND:
// the background should be erased // the background should be erased
break; break;