Fixing bug 6464. Moving Users50 and registry location on windows to Application Data folder. r=dveditz, ccarlen

This commit is contained in:
racham%netscape.com 2000-08-29 23:44:53 +00:00
Родитель 4a657a09f9
Коммит 0c473184e1
2 изменённых файлов: 6 добавлений и 6 удалений

Просмотреть файл

@ -450,7 +450,7 @@ static nsresult GetCurrentProcessDirectory(nsILocalFile** aFile)
// GetDefaultUserProfileRoot - Gets the directory which contains each user profile dir // GetDefaultUserProfileRoot - Gets the directory which contains each user profile dir
// //
// UNIX : ~/.mozilla/ // UNIX : ~/.mozilla/
// WIN : Program Files\Netscape\Users50\ // WIN : <Application Data folder on user's machine>\Mozilla\Users50
// Mac : :Documents:Mozilla:Users50: // Mac : :Documents:Mozilla:Users50:
//---------------------------------------------------------------------------------------- //----------------------------------------------------------------------------------------
static nsresult GetDefaultUserProfileRoot(nsILocalFile **aLocalFile) static nsresult GetDefaultUserProfileRoot(nsILocalFile **aLocalFile)
@ -496,10 +496,10 @@ static nsresult GetDefaultUserProfileRoot(nsILocalFile **aLocalFile)
NS_ENSURE_SUCCESS(rv, rv); NS_ENSURE_SUCCESS(rv, rv);
} }
#elif defined(XP_PC) #elif defined(XP_PC)
rv = GetWindowsFolder(CSIDL_PROGRAMS, aLocalFile); rv = GetWindowsFolder(CSIDL_APPDATA, aLocalFile);
NS_ENSURE_SUCCESS(rv, rv); NS_ENSURE_SUCCESS(rv, rv);
pLocalFile = *aLocalFile; pLocalFile = *aLocalFile;
pLocalFile->AppendRelativePath("Netscape"); pLocalFile->AppendRelativePath("Mozilla");
rv = pLocalFile->Exists(&exists); rv = pLocalFile->Exists(&exists);
NS_ENSURE_SUCCESS(rv, rv); NS_ENSURE_SUCCESS(rv, rv);
if (!exists) { if (!exists) {

Просмотреть файл

@ -450,7 +450,7 @@ static nsresult GetCurrentProcessDirectory(nsILocalFile** aFile)
// GetDefaultUserProfileRoot - Gets the directory which contains each user profile dir // GetDefaultUserProfileRoot - Gets the directory which contains each user profile dir
// //
// UNIX : ~/.mozilla/ // UNIX : ~/.mozilla/
// WIN : Program Files\Netscape\Users50\ // WIN : <Application Data folder on user's machine>\Mozilla\Users50
// Mac : :Documents:Mozilla:Users50: // Mac : :Documents:Mozilla:Users50:
//---------------------------------------------------------------------------------------- //----------------------------------------------------------------------------------------
static nsresult GetDefaultUserProfileRoot(nsILocalFile **aLocalFile) static nsresult GetDefaultUserProfileRoot(nsILocalFile **aLocalFile)
@ -496,10 +496,10 @@ static nsresult GetDefaultUserProfileRoot(nsILocalFile **aLocalFile)
NS_ENSURE_SUCCESS(rv, rv); NS_ENSURE_SUCCESS(rv, rv);
} }
#elif defined(XP_PC) #elif defined(XP_PC)
rv = GetWindowsFolder(CSIDL_PROGRAMS, aLocalFile); rv = GetWindowsFolder(CSIDL_APPDATA, aLocalFile);
NS_ENSURE_SUCCESS(rv, rv); NS_ENSURE_SUCCESS(rv, rv);
pLocalFile = *aLocalFile; pLocalFile = *aLocalFile;
pLocalFile->AppendRelativePath("Netscape"); pLocalFile->AppendRelativePath("Mozilla");
rv = pLocalFile->Exists(&exists); rv = pLocalFile->Exists(&exists);
NS_ENSURE_SUCCESS(rv, rv); NS_ENSURE_SUCCESS(rv, rv);
if (!exists) { if (!exists) {