From d4cf16944ebca22bbc029ee5520d73d4460007d3 Mon Sep 17 00:00:00 2001 From: Rom Walton Date: Wed, 24 Oct 2012 13:31:57 -0400 Subject: [PATCH] - API: Remove the call to SendMessage(WM_QUIT, ...) after destroying the window. There is no guarantee what order the event queue will be processed in and if WM_QUIT is processed before WM_DESTROY something might linger around. --- api/graphics2_win.cpp | 1 - checkin_notes | 8 ++++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/api/graphics2_win.cpp b/api/graphics2_win.cpp index fa082310c2..375ebe3dc0 100644 --- a/api/graphics2_win.cpp +++ b/api/graphics2_win.cpp @@ -68,7 +68,6 @@ void boinc_close_window_and_quit(const char* p) { if (window) { DestroyWindow(window); } - SendMessage(window, WM_QUIT, 0, 0); } void SetupPixelFormat(HDC win_dc) { diff --git a/checkin_notes b/checkin_notes index 0d1f350b0f..c3538d0fa8 100644 --- a/checkin_notes +++ b/checkin_notes @@ -6323,3 +6323,11 @@ Rom 23 Oct 2012 clientscr/ screensaver_x11.cpp + +Rom 24 Oct 2012 + - API: Remove the call to SendMessage(WM_QUIT, ...) after destroying the window. + There is no guarantee what order the event queue will be processed in and if + WM_QUIT is processed before WM_DESTROY something might linger around. + + api/ + graphics2_win.cpp