Mac SS: Minor tweak for use in debugging

svn path=/trunk/boinc/; revision=22678
This commit is contained in:
Charlie Fenton 2010-11-11 11:55:43 +00:00
parent 70e523acbf
commit f982df4404
2 changed files with 12 additions and 1 deletions

View File

@ -8065,3 +8065,9 @@ David 10 Nov 2010
setup_project.py
sched/
sample_work_generator.cpp
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);