Port Bug #246285 to the trunk so the semi-single profile landing doesn't break Mac builds by preventing

thunderbird from finding the profile on OS X.


git-svn-id: svn://10.0.0.236/trunk@158104 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
scott%scott-macgregor.org 2004-06-18 07:38:59 +00:00
parent f1892d4f88
commit b3b670e702

View File

@ -520,7 +520,11 @@ nsXREDirProvider::GetUserAppDataDirectory(nsILocalFile** aFile)
#if defined(XP_MACOSX)
FSRef fsRef;
#ifdef MOZ_THUNDERBIRD
OSErr err = ::FSFindFolder(kUserDomain, kDomainLibraryFolderType, kCreateFolder, &fsRef);
#else
OSErr err = ::FSFindFolder(kUserDomain, kApplicationSupportFolderType, kCreateFolder, &fsRef);
#endif
if (err) return NS_ERROR_FAILURE;
rv = NS_NewNativeLocalFile(EmptyCString(), PR_TRUE, getter_AddRefs(localDir));