- WINSCR: if we see a WM_QUIT message in the message pump for whatever reason

terminate the screensaver process.
        
    clientscr/
        screensaver_win.cpp

svn path=/branches/boinc_core_release_6_8/; revision=23769
This commit is contained in:
Rom Walton 2011-06-22 16:18:10 +00:00
parent d21be978f8
commit f8d93187a4
2 changed files with 16 additions and 0 deletions

View File

@ -6765,3 +6765,10 @@ Charlie 6 Jun 2011
mac_saver_module.cpp
clientgui/
BOINCGUIApp.cpp
Rom 22 Jun 2011
- WINSCR: if we see a WM_QUIT message in the message pump for whatever reason
terminate the screensaver process.
clientscr/
screensaver_win.cpp

View File

@ -1412,6 +1412,15 @@ LRESULT CScreensaver::SaverProc(
if (wParam == PBT_APMQUERYSUSPEND && gspfnMyVerifyPwdProc == NULL)
InterruptSaver();
break;
case WM_QUIT:
BOINCTRACE(_T("CScreensaver::SaverProc Received WM_QUIT\n"));
#ifdef _DEBUG
DebugBreak();
#else
TerminateProcess(GetCurrentProcess(), 0);
#endif
break;
}
if (WM_SETTIMER == uMsg) {