From 7b38bc401e50e63d7061d28f9548ebe3f02d65e3 Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Thu, 14 Oct 2010 16:49:06 +0000 Subject: [PATCH] Monotone-Parent: d488569ba0d5e23db050589aa2a6046d55e25c6b Monotone-Revision: 0c3ea0903c8ac74141bf5bc581a5eae470b668fe Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2010-10-14T16:49:06 Monotone-Branch: ca.inverse.sogo --- OpenChange/MAPIStoreMailContext.m | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/OpenChange/MAPIStoreMailContext.m b/OpenChange/MAPIStoreMailContext.m index fef7c4fcc..acd333080 100644 --- a/OpenChange/MAPIStoreMailContext.m +++ b/OpenChange/MAPIStoreMailContext.m @@ -424,15 +424,16 @@ static Class SOGoUserFolderK; withTag: tag inFolder: nil withFID: 0] - == MAPI_E_SUCCESS) + != MAPI_E_SUCCESS) { - set_SPropValue_proptag (&(aRow->lpProps[aRow->cValues]), - tag, propValue); - aRow->cValues++; - // talloc_free (propValue); + propValue = MAPILongValue (memCtx, MAPI_E_NOT_FOUND); + tag = (tag & 0xffff0000) | 0x0a; } + set_SPropValue_proptag (&(aRow->lpProps[aRow->cValues]), + tag, propValue); + aRow->cValues++; } - rc = MAPISTORE_ERR_NOT_FOUND; + rc = MAPI_E_SUCCESS; } else rc = MAPISTORE_ERR_NOT_FOUND;