From c1cc23ef29071b92d8fba373fa77540962f277cd Mon Sep 17 00:00:00 2001 From: Rom Walton Date: Fri, 4 Feb 2005 17:29:59 +0000 Subject: [PATCH] *** empty log message *** svn path=/trunk/boinc/; revision=5316 --- checkin_notes | 6 +++++- client/win/win_screensaver.cpp | 8 ++++---- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/checkin_notes b/checkin_notes index 8aa3712be4..3101534afc 100755 --- a/checkin_notes +++ b/checkin_notes @@ -23990,4 +23990,8 @@ Rom 4 Feb 2005 boinc_win.h parse.C - \ No newline at end of file +Rom 4 Feb 2005 + - Bug Fix: Don't record the blank time as Epoch time in the registry. + + client/win/ + win_screensaver.cpp diff --git a/client/win/win_screensaver.cpp b/client/win/win_screensaver.cpp index 51b5353b6f..ed5c37f9c1 100755 --- a/client/win/win_screensaver.cpp +++ b/client/win/win_screensaver.cpp @@ -170,14 +170,14 @@ HRESULT CScreensaver::Create( HINSTANCE hInstance ) bReturnValue = UtilGetRegKey( REG_BLANK_TIME, m_dwBlankTime ); if ( bReturnValue != 0 ) m_dwBlankTime = 5; - // Calculate the estimated blank time by adding the current time - // and and the user specified time which is in minutes - m_dwBlankTime = time(0) + (m_dwBlankTime * 60); - // Save the value back to the registry in case this is the first // execution and so we need the default value later. UtilSetRegKey( REG_BLANK_TIME, m_dwBlankTime ); + // Calculate the estimated blank time by adding the current time + // and and the user specified time which is in minutes + m_dwBlankTime = time(0) + (m_dwBlankTime * 60); + // Create the screen saver window(s) if( m_SaverMode == sm_preview ||