*** empty log message ***

svn path=/trunk/boinc/; revision=2955
This commit is contained in:
Rom Walton 2004-02-04 20:13:21 +00:00
parent 666ac08452
commit 8bb65ab66d
2 changed files with 9 additions and 4 deletions

View File

@ -9738,5 +9738,10 @@ Rom Feb 4 2004
lib/
util.c,h
Rom Feb 4 2004
- Changed from using SHGetSpecialFolder to SHGetFolderPath which now uses COM and so will
will not throw a dynamic link error on startup for platforms that don't support it.
client
win/
win_screensaver.cpp

View File

@ -1476,7 +1476,7 @@ BOOL CScreensaver::IsConfigStartupBOINC()
// It could be in the global startup group
ZeroMemory( szBuffer, 512 );
bCheckFileExists = FALSE;
if (SHGetSpecialFolderPath(NULL, szBuffer, CSIDL_STARTUP, FALSE))
if (SUCCEEDED(SHGetFolderPath(NULL, CSIDL_STARTUP|CSIDL_FLAG_CREATE, NULL, SHGFP_TYPE_CURRENT, szBuffer)))
{
TRACE(TEXT("IsConfigStartupBOINC: SHGetSpecialFolderPath - CSIDL_STARTUP - '%s'\n"), szBuffer);
if (SUCCEEDED(StringCchCatN(szBuffer, 512, TEXT("\\BOINC.lnk"), 10)))
@ -1519,7 +1519,7 @@ BOOL CScreensaver::IsConfigStartupBOINC()
// It could be in the global startup group
ZeroMemory( szBuffer, 512 );
bCheckFileExists = FALSE;
if (SHGetSpecialFolderPath(NULL, szBuffer, CSIDL_COMMON_STARTUP, FALSE))
if (SUCCEEDED(SHGetFolderPath(NULL, CSIDL_COMMON_STARTUP|CSIDL_FLAG_CREATE, NULL, SHGFP_TYPE_CURRENT, szBuffer)))
{
TRACE(TEXT("IsConfigStartupBOINC: SHGetSpecialFolderPath - CSIDL_COMMON_STARTUP - '%s'\n"), szBuffer);
if (SUCCEEDED(StringCchCatN(szBuffer, 512, TEXT("\\BOINC.lnk"), 10)))