fix regression in deleting attachments on windows due to file spec removal, sr=mscott 377852
git-svn-id: svn://10.0.0.236/trunk@224974 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -2741,9 +2741,12 @@ nsDelAttachListener::OnStopRequest(nsIRequest * aRequest, nsISupports * aContext
|
||||
mNewMessageKey = PR_UINT32_MAX;
|
||||
nsCOMPtr<nsIMsgCopyService> copyService = do_GetService(NS_MSGCOPYSERVICE_CONTRACTID);
|
||||
m_state = eCopyingNewMsg;
|
||||
// clone file because nsIFile on Windows caches the wrong file size.
|
||||
nsCOMPtr <nsIFile> clone;
|
||||
mMsgFile->Clone(getter_AddRefs(clone));
|
||||
if (copyService)
|
||||
{
|
||||
rv = copyService->CopyFileMessage(mMsgFile, mMessageFolder, nsnull, PR_FALSE,
|
||||
rv = copyService->CopyFileMessage(clone, mMessageFolder, nsnull, PR_FALSE,
|
||||
mOrigMsgFlags, listenerCopyService, mMsgWindow);
|
||||
}
|
||||
return rv;
|
||||
|
||||
Reference in New Issue
Block a user