Performance Improvements

svn path=/trunk/boinc/; revision=3809
This commit is contained in:
Rom Walton 2004-07-07 18:35:25 +00:00
parent aa0b9151bd
commit da3809b3ac
2 changed files with 15 additions and 1 deletions

View File

@ -14790,3 +14790,12 @@ Rom 6 July 2004
client/win/
wingui_mainwindow.cpp, .h
Rom 7 July 2004
- Adjust the console control handler such that when a logoff event has occurred check to
see if we are running as a service and if so, ignore the event, otherwise quit.
Thanks to Fernando Vinan-Cano via John McLeod
client/
main.C

View File

@ -179,11 +179,16 @@ BOOL WINAPI ConsoleControlHandler ( DWORD dwCtrlType ){
break;
case CTRL_BREAK_EVENT:
case CTRL_CLOSE_EVENT:
case CTRL_LOGOFF_EVENT:
case CTRL_SHUTDOWN_EVENT:
quit_client();
bReturnStatus = TRUE;
break;
case CTRL_LOGOFF_EVENT:
if (!gstate.executing_as_windows_service) {
quit_client();
}
bReturnStatus = TRUE;
break;
}
return bReturnStatus;
}