зеркало из https://github.com/mozilla/gecko-dev.git
truncating the port number from the popservername because it causes problem
in creating directory on windows (Name:port)
This commit is contained in:
Родитель
7135f5c822
Коммит
dbc4356788
|
@ -917,8 +917,18 @@ nsPrefMigration::ProcessPrefsCallback(const char* oldProfilePathStr, const char
|
|||
|
||||
m_prefs->CopyCharPref(PREF_NETWORK_HOSTS_POP_SERVER, &popServerName);
|
||||
|
||||
rv = newPOPMailPath->AppendRelativeUnixPath(popServerName);
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
//popServerName = strtok (popServerName,":");
|
||||
int i =0;
|
||||
while (popServerName[i] != '\0' ){
|
||||
if ( popServerName[i] == ':' ) {
|
||||
popServerName[i] = '\0';
|
||||
break;
|
||||
}
|
||||
i++;
|
||||
}
|
||||
|
||||
rv = newPOPMailPath->AppendRelativeUnixPath(popServerName);
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
rv = newPOPMailPath->Exists(&exists);
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
|
Загрузка…
Ссылка в новой задаче