Mac SS: Minor tweak for use in debugging

svn path=/branches/boinc_core_release_6_12/; revision=22679
This commit is contained in:
Charlie Fenton 2010-11-11 11:58:41 +00:00
parent 2099a4c214
commit 76381d93e6
2 changed files with 12 additions and 1 deletions

View File

@ -7705,3 +7705,9 @@ Rom 08 Nov 2010
/
configure.ac
version.h
Charlie 11 Nov 2010
- Mac SS: Minor tweak for use in debugging.
clientscr/
mac_saver_module.cpp

View File

@ -341,8 +341,13 @@ OSStatus CScreensaver::initBOINCApp() {
if (++retryCount > 3) // Limit to 3 relaunches to prevent thrashing
return -1;
#ifdef _DEBUG
err = -1;
#else
err = GetpathToBOINCManagerApp(boincPath, sizeof(boincPath));
if (err) { // If we couldn't find BOINCManager.app, try default path
#endif
if (err)
{ // If we couldn't find BOINCManager.app, try default path
strcpy(boincPath, "/Applications/");
if (brandId)
strcat(boincPath, m_BrandText);