Bug #97497-- hopefully fix a random crash when compacting folders. I'm backing out part of

a previous change by bienvenu.
r=naving
sr=sspitzer
This commit is contained in:
mscott%netscape.com 2001-10-19 04:38:00 +00:00
Родитель d7672429e0
Коммит fe984c8956
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -179,9 +179,11 @@ NS_IMETHODIMP nsImapFlagAndUidState::ExpungeByIndex(PRUint32 msgIndex)
if (fFlags[msgIndex] & kImapMsgDeletedFlag) // see if we already had counted this one as deleted
fNumberDeleted--;
for (counter = msgIndex; counter < (PRUint32) fNumberOfMessagesAdded; counter++)
{
fUids.SetAt(counter, fUids[counter + 1]);
fFlags[counter] = fFlags[counter + 1];
}
fUids.RemoveAt(msgIndex, 1);
PR_CExitMonitor(this);
return NS_OK;
}