Made DefaultUserProfileRoot as home for migrated profiles
git-svn-id: svn://10.0.0.236/trunk@36176 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -1866,12 +1866,12 @@ NS_IMETHODIMP nsProfile::MigrateProfile(const char* profileName)
|
||||
|
||||
// Get current profile, make the new one a sibling...
|
||||
nsIFileSpec* newSpec = NS_LocateFileOrDirectory(
|
||||
nsSpecialFileSpec::App_UserProfileDirectory50);
|
||||
nsSpecialFileSpec::App_DefaultUserProfileRoot50);
|
||||
if (!newSpec)
|
||||
return NS_ERROR_FAILURE;
|
||||
newSpec->GetFileSpec(&newProfDir);
|
||||
NS_RELEASE(newSpec);
|
||||
newProfDir.SetLeafName(profileName);
|
||||
newProfDir += profileName;
|
||||
|
||||
|
||||
// Call migration service to do the work.
|
||||
|
||||
Reference in New Issue
Block a user