Fix compiler warning and small optimization in NewsDeliveryCallback(). bug 72388. r=ducarroz, sr=sspitzer

git-svn-id: svn://10.0.0.236/trunk@89903 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
hwaara%chello.se
2001-03-20 13:14:57 +00:00
parent 9b195bce94
commit 2a8b96a54e

View File

@@ -2664,20 +2664,17 @@ NewsDeliveryCallback(nsIURI *aUrl, nsresult aExitCode, void *tagData)
if (tagData)
{
nsMsgComposeAndSend *ptr = (nsMsgComposeAndSend *) tagData;
if (!ptr) return NS_ERROR_NULL_POINTER;
if (NS_FAILED(aExitCode))
switch (aExitCode)
{
default:
if (! NS_IS_MSG_ERROR(aExitCode))
aExitCode = NS_ERROR_SEND_FAILED;
break;
}
ptr->DeliverAsNewsExit(aUrl, aExitCode, ptr->mSendMailAlso);
if (NS_FAILED(aExitCode))
{
if (! NS_IS_MSG_ERROR(aExitCode))
aExitCode = NS_ERROR_SEND_FAILED;
NS_RELEASE(ptr);
ptr->DeliverAsNewsExit(aUrl, aExitCode, ptr->mSendMailAlso);
NS_RELEASE(ptr);
}
}
return aExitCode;