diff --git a/mailnews/db/msgdb/src/nsMsgOfflineImapOperation.cpp b/mailnews/db/msgdb/src/nsMsgOfflineImapOperation.cpp index 3ec59d1a6f15..d860e18d4561 100644 --- a/mailnews/db/msgdb/src/nsMsgOfflineImapOperation.cpp +++ b/mailnews/db/msgdb/src/nsMsgOfflineImapOperation.cpp @@ -146,10 +146,12 @@ NS_IMETHODIMP nsMsgOfflineImapOperation::SetFlagOperation(imapMessageFlagsType a NS_IMETHODIMP nsMsgOfflineImapOperation::GetNewFlags(imapMessageFlagsType *aNewFlags) { NS_ENSURE_ARG(aNewFlags); - nsresult rv = m_mdb->GetUint32Property(m_mdbRow, PROP_NEW_FLAGS, (PRUint32 *) &m_newFlags, 0); - *aNewFlags = m_newFlags; + PRUint32 flags; + nsresult rv = m_mdb->GetUint32Property(m_mdbRow, PROP_NEW_FLAGS, &flags, 0); + *aNewFlags = m_newFlags = (imapMessageFlagsType) flags; return NS_OK; } + NS_IMETHODIMP nsMsgOfflineImapOperation::SetNewFlags(imapMessageFlagsType aNewFlags) { m_newFlags = aNewFlags;