diff --git a/mailnews/imap/src/nsImapMoveCoalescer.cpp b/mailnews/imap/src/nsImapMoveCoalescer.cpp index 25558d3dd7dc..ae0af943ca3b 100644 --- a/mailnews/imap/src/nsImapMoveCoalescer.cpp +++ b/mailnews/imap/src/nsImapMoveCoalescer.cpp @@ -124,7 +124,7 @@ nsresult nsImapMoveCoalescer::PlaybackMoves(nsIEventQueue *eventQueue) rv = m_sourceFolder->GetMessageHeader(keysToAdd->ElementAt(keyIndex), getter_AddRefs(mailHdr)); if (NS_SUCCEEDED(rv) && mailHdr) { - nsCOMPtr iSupports = mailHdr; + nsCOMPtr iSupports = do_QueryInterface(mailHdr); messages->AppendElement(iSupports); } }