summaryrefslogtreecommitdiff
path: root/plugins/SecureIM/src/crypt_lists.cpp
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2015-04-30 06:34:32 +0000
committerKirill Volinsky <mataes2007@gmail.com>2015-04-30 06:34:32 +0000
commitcf45ff050dad2570c3172e111d739a3ae11a9ec1 (patch)
tree9322aa6d5f2cd848074216f0f2321ef55f8287bd /plugins/SecureIM/src/crypt_lists.cpp
parent2ebe714aaa6004ba617f04d2d11b4e5a763c1074 (diff)
minus critical section
git-svn-id: http://svn.miranda-ng.org/main/trunk@13277 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/SecureIM/src/crypt_lists.cpp')
-rw-r--r--plugins/SecureIM/src/crypt_lists.cpp3
1 files changed, 1 insertions, 2 deletions
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)