[evolution-mapi/gnome-3-0] Bug #613209 - Crash after call of ResolveNames
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-mapi/gnome-3-0] Bug #613209 - Crash after call of ResolveNames
- Date: Fri, 17 Jun 2011 07:14:26 +0000 (UTC)
commit 8a435eb91e1eb2ea46350c980e11de2ba6c6cc90
Author: Milan Crha <mcrha redhat com>
Date: Fri Jun 17 09:14:04 2011 +0200
Bug #613209 - Crash after call of ResolveNames
src/libexchangemapi/exchange-mapi-connection.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/libexchangemapi/exchange-mapi-connection.c b/src/libexchangemapi/exchange-mapi-connection.c
index 6550573..f186185 100644
--- a/src/libexchangemapi/exchange-mapi-connection.c
+++ b/src/libexchangemapi/exchange-mapi-connection.c
@@ -3533,7 +3533,7 @@ exchange_mapi_connection_ex_to_smtp (ExchangeMapiConnection *conn, const gchar *
if (ms != MAPI_E_SUCCESS)
ms = ResolveNames (priv->session, (const gchar **)str_array, SPropTagArray, &SRowSet, &flaglist, 0);
- if (ms == MAPI_E_SUCCESS && SRowSet) {
+ if (ms == MAPI_E_SUCCESS && SRowSet && SRowSet->cRows == 1) {
smtp_addr = g_strdup (exchange_mapi_util_find_row_propval (SRowSet->aRow, PR_SMTP_ADDRESS_UNICODE));
if (display_name)
*display_name = g_strdup (exchange_mapi_util_find_row_propval (SRowSet->aRow, PR_DISPLAY_NAME_UNICODE));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]