summaryrefslogtreecommitdiff
path: root/plugins/SecureIM/src/crypt_lists.cpp
diff options
context:
space:
mode:
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)