mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 13:21:05 +00:00
fix hang starting mail, sr=alecf 141162
This commit is contained in:
parent
b74d373f13
commit
14e1f929e9
@ -303,7 +303,7 @@ nsresult NS_MsgCreatePathStringFromFolderURI(const char *folderURI, nsCString& p
|
||||
PRInt32 startSlashPos = oldPath.FindChar('/');
|
||||
PRInt32 endSlashPos = (startSlashPos >= 0)
|
||||
? oldPath.FindChar('/', startSlashPos + 1) - 1 : oldPath.Length() - 1;
|
||||
if (endSlashPos == -1)
|
||||
if (endSlashPos < 0)
|
||||
endSlashPos = oldPath.Length();
|
||||
// trick to make sure we only add the path to the first n-1 folders
|
||||
PRBool haveFirst=PR_FALSE;
|
||||
@ -327,10 +327,10 @@ nsresult NS_MsgCreatePathStringFromFolderURI(const char *folderURI, nsCString& p
|
||||
|
||||
endSlashPos = (startSlashPos >= 0)
|
||||
? oldPath.FindChar('/', startSlashPos + 1) - 1: oldPath.Length() - 1;
|
||||
if (endSlashPos == -1)
|
||||
if (endSlashPos < 0)
|
||||
endSlashPos = oldPath.Length();
|
||||
|
||||
if (startSlashPos == endSlashPos)
|
||||
if (startSlashPos >= endSlashPos)
|
||||
break;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user