From e3327452e3f7be5c17bfc241dfd2126f3936ebcf Mon Sep 17 00:00:00 2001 From: Rom Walton Date: Thu, 25 Oct 2012 18:21:34 -0400 Subject: [PATCH] - API: Use CloseWindow() to respond to the API Defined WM_SHUTDOWNGFX event just in case CloseWindow() does something more than just send the WM_CLOSE event to the window proc. --- api/graphics2_win.cpp | 6 +++--- checkin_notes | 8 ++++++++ 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/api/graphics2_win.cpp b/api/graphics2_win.cpp index 375ebe3dc0..3295ce0c17 100644 --- a/api/graphics2_win.cpp +++ b/api/graphics2_win.cpp @@ -300,12 +300,12 @@ LRESULT CALLBACK WndProc( case WM_CLOSE: boinc_close_window_and_quit("WM_CLOSE"); return 0; - case WM_SHUTDOWNGFX: - boinc_close_window_and_quit("WM_SHUTDOWNGFX"); - return 0; case WM_DESTROY: PostQuitMessage(0); return 0; + case WM_SHUTDOWNGFX: + CloseWindow(hWnd); + return 0; case WM_PAINT: PAINTSTRUCT ps; RECT winRect; diff --git a/checkin_notes b/checkin_notes index f2bee47651..c0d3c4bc6e 100644 --- a/checkin_notes +++ b/checkin_notes @@ -6369,3 +6369,11 @@ David 24 Oct 2012 html/ops/ db_update.php + +Rom 25 Oct 2012 + - API: Use CloseWindow() to respond to the API Defined WM_SHUTDOWNGFX event just + in case CloseWindow() does something more than just send the WM_CLOSE event + to the window proc. + + api/ + graphics2_win.cpp