*** empty log message ***

svn path=/trunk/boinc/; revision=2522
This commit is contained in:
David Anderson 2003-10-20 21:52:25 +00:00
parent 76bfde65dc
commit eacb774fbe
2 changed files with 15 additions and 9 deletions

View File

@ -6937,3 +6937,8 @@ Karl 2003-10-19
client/win/
wingui_mainwindow.cpp
David 20 Oct 2003
- fixed bug that prevented screensaver from launching core client
win_screensaver.cpp

View File

@ -93,7 +93,7 @@ void RunSaver( void ) {
if(boinc_mutex != NULL && GetLastError() != ERROR_ALREADY_EXISTS) {
CloseHandle(boinc_mutex);
// Get the path to the client
if (!UtilGetRegStr( "ClientPath", client_path ) ||
if (UtilGetRegStr( "ClientPath", client_path ) ||
UtilGetRegStr( "ClientDir", client_dir ))
{
return /* error */;
@ -107,14 +107,15 @@ void RunSaver( void ) {
// Start the client in the background
oldval = CreateProcess( client_path, // path to the client
"boinc -saver", // start the screensaver
NULL, NULL, // no process, thread security attributes
FALSE, // doesn't inherit handles
CREATE_NEW_PROCESS_GROUP|CREATE_NO_WINDOW|IDLE_PRIORITY_CLASS,
NULL, // same environment
client_dir, // start in the standard client directory
&startup_info,
&process_info );
"boinc -saver", // start the screensaver
NULL, NULL, // no process, thread security attributes
FALSE, // doesn't inherit handles
CREATE_NEW_PROCESS_GROUP|CREATE_NO_WINDOW|IDLE_PRIORITY_CLASS,
NULL, // same environment
client_dir, // start in the standard client directory
&startup_info,
&process_info
);
// wait up to 3 seconds for BOINC to start
WaitForInputIdle(process_info.hProcess, 3000);
}