conflict with profile checkin

git-svn-id: svn://10.0.0.236/trunk@35407 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mcmullen%netscape.com 1999-06-15 06:42:23 +00:00
parent 88283344c4
commit 2f50472c00

View File

@ -1906,15 +1906,12 @@ NS_IMETHODIMP nsProfile::MigrateProfile(const char* profileName)
}
// Get current profile, make the new one a sibling...
rv = locator->GetFileLocation(nsSpecialFileSpec::App_UserProfileDirectory50, &newProfDir);
if (NS_FAILED(rv))
{
nsIFileSpec* newSpec = NS_LocateFileOrDirectory(
nsSpecialFileSpec::App_UserProfileDirectory50);
if (!newSpec)
return NS_ERROR_FAILURE;
}
nsServiceManager::ReleaseService(kFileLocatorCID, locator);
newSpec->GetFileSpec(&newProfDir);
NS_RELEASE(newSpec);
newProfDir.SetLeafName(profileName);