fix for #137886. fix string infinite loop issue that was causing remigration to hang on win2k and win98

r/sr=alecf
This commit is contained in:
sspitzer%netscape.com 2002-04-30 05:26:17 +00:00
Родитель 9ed229bf42
Коммит e145b23d84
1 изменённых файлов: 4 добавлений и 2 удалений

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

@ -2307,7 +2307,9 @@ nsProfile::RemigrateProfile(const PRUnichar* profileName)
// Backup what we're remigrating by renaming it and leaving in place
// XXX todo: what if <xxxxxxxx>.slt-old already exists?
rv = profileDir->MoveToNative(nsnull, origDirLeafName + NS_LITERAL_CSTRING("-old"));
nsCAutoString oldLeafName;
oldLeafName = origDirLeafName + NS_LITERAL_CSTRING("-old");
rv = profileDir->MoveToNative(nsnull, oldLeafName);
NS_ENSURE_SUCCESS(rv,rv);
// Create a new directory for the remigrated profile