[evolution-mapi/gnome-2-30] Add LOCK/UNLOCK around RegisterNotification



commit de0dc1ae60f8f804642d610021ee8b843582716a
Author: Milan Crha <mcrha redhat com>
Date:   Mon Apr 12 22:26:12 2010 +0200

    Add LOCK/UNLOCK around RegisterNotification

 src/libexchangemapi/exchange-mapi-connection.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/libexchangemapi/exchange-mapi-connection.c b/src/libexchangemapi/exchange-mapi-connection.c
index 7ae454d..801e464 100644
--- a/src/libexchangemapi/exchange-mapi-connection.c
+++ b/src/libexchangemapi/exchange-mapi-connection.c
@@ -3159,7 +3159,9 @@ exchange_mapi_events_init ()
 {
 	enum MAPISTATUS retval;
 
+	LOCK();
 	retval = RegisterNotification(0);
+	UNLOCK();
 
 	return (retval == MAPI_E_SUCCESS);
 }



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