[evolution-mapi] Bug #653489 - QueryRows fails on exchange 2010 servers
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-mapi] Bug #653489 - QueryRows fails on exchange 2010 servers
- Date: Wed, 29 Jun 2011 09:08:46 +0000 (UTC)
commit 2429f2b09393a1568e08e4798ab251e1d7791702
Author: Milan Crha <mcrha redhat com>
Date: Wed Jun 29 11:08:24 2011 +0200
Bug #653489 - QueryRows fails on exchange 2010 servers
src/libexchangemapi/exchange-mapi-connection.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/src/libexchangemapi/exchange-mapi-connection.c b/src/libexchangemapi/exchange-mapi-connection.c
index a5bd5d8..a9c9a28 100644
--- a/src/libexchangemapi/exchange-mapi-connection.c
+++ b/src/libexchangemapi/exchange-mapi-connection.c
@@ -942,15 +942,15 @@ exchange_mapi_util_delete_attachments (mapi_object_t *obj_message, GError **perr
goto cleanup;
}
+ if (!attach_count)
+ goto cleanup;
+
ms = QueryRows (&obj_tb_attach, attach_count, TBL_ADVANCE, &rows_attach);
if (ms != MAPI_E_SUCCESS) {
make_mapi_error (perror, "QueryRows", ms);
goto cleanup;
}
- if (!attach_count)
- goto cleanup;
-
/* foreach attachment, delete by PR_ATTACH_NUM */
for (i_row_attach = 0; i_row_attach < rows_attach.cRows; i_row_attach++) {
const uint32_t *num_attach;
@@ -1225,15 +1225,15 @@ exchange_mapi_util_get_attachments (ExchangeMapiConnection *conn, mapi_id_t fid,
goto cleanup;
}
+ if (!attach_count)
+ goto cleanup;
+
ms = QueryRows (&obj_tb_attach, attach_count, TBL_ADVANCE, &rows_attach);
if (ms != MAPI_E_SUCCESS) {
make_mapi_error (perror, "QueryRows", ms);
goto cleanup;
}
- if (!attach_count)
- goto cleanup;
-
/* foreach attachment, open by PR_ATTACH_NUM */
for (i_row_attach = 0; i_row_attach < rows_attach.cRows; i_row_attach++) {
ExchangeMAPIAttachment *attachment;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]