mirror of https://github.com/BOINC/boinc.git
Performance Improvements
svn path=/trunk/boinc/; revision=3809
This commit is contained in:
parent
aa0b9151bd
commit
da3809b3ac
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue