- 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.
This commit is contained in:
Rom Walton 2012-10-24 13:31:57 -04:00 committed by Oliver Bock
parent d3fbcaf8d5
commit d4cf16944e
2 changed files with 8 additions and 1 deletions

View File

@ -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) {

View File

@ -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