[evolution-mapi] Bug #622687 - Unnecessary warning in exchange_mapi_util_read_generic_stream



commit 43efbbe1fde3f8f195494a7902230c04f4bd9f82
Author: Milan Crha <mcrha redhat com>
Date:   Fri Jun 25 13:55:38 2010 +0200

    Bug #622687 - Unnecessary warning in exchange_mapi_util_read_generic_stream

 src/libexchangemapi/exchange-mapi-connection.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/libexchangemapi/exchange-mapi-connection.c b/src/libexchangemapi/exchange-mapi-connection.c
index 1bc0d66..667ffdc 100644
--- a/src/libexchangemapi/exchange-mapi-connection.c
+++ b/src/libexchangemapi/exchange-mapi-connection.c
@@ -383,7 +383,8 @@ exchange_mapi_util_read_generic_stream (mapi_object_t *obj_message, const uint32
 	g_return_val_if_fail (((proptag & 0xFFFF) == PT_BINARY), FALSE);
 
 	/* if compressed RTF stream, then return */
-	g_return_val_if_fail (proptag != PR_RTF_COMPRESSED, FALSE);
+	if (proptag == PR_RTF_COMPRESSED)
+		return FALSE;
 
 	g_debug("%s: Entering %s ", G_STRLOC, G_STRFUNC);
 	g_debug("Attempt to read stream for proptag 0x%08X ", proptag);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]