[evolution-mapi] Fix read/write of PidNameKeywords property



commit cd3ebd03a5e420872b7fde1922079286cc977793
Author: Milan Crha <mcrha redhat com>
Date:   Wed Aug 10 12:05:50 2011 +0200

    Fix read/write of PidNameKeywords property
    
    Note this change requires fix on an OpenChange side as well,
    see [1] for more details.
    
    [1] http://tracker.openchange.org/issues/367

 src/libexchangemapi/exchange-mapi-cal-utils.c |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/src/libexchangemapi/exchange-mapi-cal-utils.c b/src/libexchangemapi/exchange-mapi-cal-utils.c
index aee8dcd..c86b441 100644
--- a/src/libexchangemapi/exchange-mapi-cal-utils.c
+++ b/src/libexchangemapi/exchange-mapi-cal-utils.c
@@ -670,7 +670,7 @@ exchange_mapi_cal_util_mapi_props_to_comp (ExchangeMapiConnection *conn, mapi_id
 	struct timeval t;
 	ExchangeMAPIStream *body_stream;
 	const gchar *subject = NULL, *body = NULL;
-	const struct StringArray_r *categories_array;
+	const struct StringArrayW_r *categories_array;
 	const uint32_t *ui32;
 	const bool *b;
 	icalcomponent *ical_comp;
@@ -731,7 +731,7 @@ exchange_mapi_cal_util_mapi_props_to_comp (ExchangeMapiConnection *conn, mapi_id
 		gint ii;
 
 		for (ii = 0; ii < categories_array->cValues; ii++) {
-			const gchar *category = categories_array->lppszA[ii];
+			const gchar *category = categories_array->lppszW[ii];
 
 			if (!category || !*category)
 				continue;
@@ -1471,11 +1471,11 @@ exchange_mapi_cal_utils_write_props_cb (ExchangeMapiConnection *conn, mapi_id_t
 	if (categories) {
 		gint ii;
 		GSList *c;
-		struct StringArray_r *categories_array;
+		struct StringArrayW_r *categories_array;
 
-		categories_array = talloc_zero (mem_ctx, struct StringArray_r);
+		categories_array = talloc_zero (mem_ctx, struct StringArrayW_r);
 		categories_array->cValues = g_slist_length (categories);
-		categories_array->lppszA = (const char **) talloc_zero_array (mem_ctx, gchar *, categories_array->cValues);
+		categories_array->lppszW = (const char **) talloc_zero_array (mem_ctx, gchar *, categories_array->cValues);
 
 		for (c = categories, ii = 0; c; c = c->next, ii++) {
 			const gchar *category = c->data;
@@ -1486,7 +1486,7 @@ exchange_mapi_cal_utils_write_props_cb (ExchangeMapiConnection *conn, mapi_id_t
 				continue;
 			}
 
-			categories_array->lppszA[ii] = talloc_strdup (mem_ctx, category);
+			categories_array->lppszW[ii] = talloc_strdup (mem_ctx, category);
 		}
 
 		set_named_value (PidNameKeywords, categories_array);



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