From eacb774fbeb11b9efd911ef55a237ea0f434df28 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Mon, 20 Oct 2003 21:52:25 +0000 Subject: [PATCH] *** empty log message *** svn path=/trunk/boinc/; revision=2522 --- checkin_notes | 5 +++++ client/win/win_screensaver.cpp | 19 ++++++++++--------- 2 files changed, 15 insertions(+), 9 deletions(-) diff --git a/checkin_notes b/checkin_notes index ab4cc51368..71aa262f73 100755 --- a/checkin_notes +++ b/checkin_notes @@ -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 diff --git a/client/win/win_screensaver.cpp b/client/win/win_screensaver.cpp index cf6d5dafe9..5b9eb67d4f 100755 --- a/client/win/win_screensaver.cpp +++ b/client/win/win_screensaver.cpp @@ -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); }