This commit is contained in:
darin%netscape.com 2003-04-23 06:37:36 +00:00
Родитель 03791fb613
Коммит d8202eb048
1 изменённых файлов: 4 добавлений и 5 удалений

9
netwerk/cache/src/nsCacheService.cpp поставляемый
Просмотреть файл

@ -333,17 +333,16 @@ nsCacheProfilePrefObserver::ReadPrefs()
rv = NS_GetSpecialDirectory(NS_APP_CACHE_PARENT_DIR,
getter_AddRefs(directory));
if (NS_FAILED(rv)) {
// try to get the profile directory (there may not be a profile yet)
rv = NS_GetSpecialDirectory(NS_APP_USER_PROFILE_50_DIR,
getter_AddRefs(directory));
// try to get the profile directory (there may not be a profile yet)
rv = NS_GetSpecialDirectory(NS_APP_USER_PROFILE_50_DIR,
getter_AddRefs(directory));
#if DEBUG
} else if (NS_FAILED(rv)) {
// use current process directory during development
rv = NS_GetSpecialDirectory(NS_XPCOM_CURRENT_PROCESS_DIR,
getter_AddRefs(directory));
}
#endif
}
if (directory)
mDiskCacheParentDirectory = do_QueryInterface(directory, &rv);
}