зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
9ed229bf42
Коммит
e145b23d84
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче