From cf45ff050dad2570c3172e111d739a3ae11a9ec1 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Thu, 30 Apr 2015 06:34:32 +0000 Subject: minus critical section git-svn-id: http://svn.miranda-ng.org/main/trunk@13277 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/SecureIM/src/crypt_lists.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'plugins/SecureIM/src/crypt_lists.cpp') diff --git a/plugins/SecureIM/src/crypt_lists.cpp b/plugins/SecureIM/src/crypt_lists.cpp index e15f612b35..c4914de114 100644 --- a/plugins/SecureIM/src/crypt_lists.cpp +++ b/plugins/SecureIM/src/crypt_lists.cpp @@ -167,7 +167,7 @@ void addMsg2Queue(pUinKey ptr, WPARAM wParam, LPSTR szMsg) pWM ptrMessage; - EnterCriticalSection(&localQueueMutex); + mir_cslock lck(localQueueMutex); if (ptr->msgQueue == NULL) { // create new @@ -195,7 +195,6 @@ void addMsg2Queue(pUinKey ptr, WPARAM wParam, LPSTR szMsg) } else ptrMessage->Message = mir_strdup(szMsg); - LeaveCriticalSection(&localQueueMutex); } void getContactNameA(MCONTACT hContact, LPSTR szName) -- cgit v1.2.3