зеркало из https://github.com/mozilla/gecko-dev.git
fix profile migration on windows (and probably mac.)
on UNIX, "mail.directory" is always set. on windows, it may be set to "" add the PL_strlen test to tree "" as not being set, so we assume the default 4.x location, which is what we want.
This commit is contained in:
Родитель
dd221ea8c5
Коммит
afbd510ee3
|
@ -582,7 +582,7 @@ nsPrefMigration::GetDirFromPref(const char *oldProfilePath, const char* newProfi
|
|||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
foundPref = m_prefs->CopyCharPref(pref, oldPath);
|
||||
if((foundPref == 0) && (*oldPath))
|
||||
if((foundPref == 0) && (*oldPath) && (PL_strlen(*oldPath) > 0))
|
||||
{
|
||||
#ifdef XP_UNIX
|
||||
// what if they don't want to go to <profile>/<newDirName>?
|
||||
|
|
Загрузка…
Ссылка в новой задаче