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