summaryrefslogtreecommitdiffstats
path: root/mailnews/import/outlook/src/MapiApi.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'mailnews/import/outlook/src/MapiApi.cpp')
-rw-r--r--mailnews/import/outlook/src/MapiApi.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/mailnews/import/outlook/src/MapiApi.cpp b/mailnews/import/outlook/src/MapiApi.cpp
index d6a159754..d23b44dd1 100644
--- a/mailnews/import/outlook/src/MapiApi.cpp
+++ b/mailnews/import/outlook/src/MapiApi.cpp
@@ -887,7 +887,7 @@ BOOL CMapiApi::IterateStores(CMapiFolderList& stores)
if (!m_lpSession) {
MAPI_TRACE0("IterateStores called before session is open\n");
- m_lastError = -1;
+ m_lastError = E_UNEXPECTED;
return FALSE;
}
@@ -1124,7 +1124,7 @@ CMsgStore * CMapiApi::FindMessageStore(ULONG cbEid, LPENTRYID lpEid)
{
if (!m_lpSession) {
MAPI_TRACE0("FindMessageStore called before session is open\n");
- m_lastError = -1;
+ m_lastError = E_UNEXPECTED;
return NULL;
}
@@ -1409,9 +1409,6 @@ void CMapiApi::ReportLongProp(const char *pTag, LPSPropValue pVal)
else if (pVal && (PROP_TYPE(pVal->ulPropTag) == PT_ERROR)) {
MAPI_TRACE1("%s {Error retrieving property}\n", pTag);
}
- else if (pVal && (PROP_TYPE(pVal->ulPropTag) == PT_ERROR)) {
- MAPI_TRACE1("%s {Error retrieving property}\n", pTag);
- }
else {
MAPI_TRACE1("%s invalid value, expecting long\n", pTag);
}
@@ -1843,7 +1840,7 @@ BOOL CMapiFolderContents::SetUpIter(void)
}
if (ulObjType != MAPI_FOLDER) {
- m_lastError = -1;
+ m_lastError = E_UNEXPECTED;
MAPI_TRACE0("CMapiFolderContents - bad object type, not a folder.\n");
return FALSE;
}