From b86e3b7cd68112b06c2a54be9fb262d45a65833a Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Mon, 11 May 2015 11:20:18 +0000 Subject: minus critical section git-svn-id: http://svn.miranda-ng.org/main/trunk@13524 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Tlen/src/tlen_presence.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'protocols/Tlen/src/tlen_presence.cpp') diff --git a/protocols/Tlen/src/tlen_presence.cpp b/protocols/Tlen/src/tlen_presence.cpp index 3f4785206e..e9e4b11fe7 100644 --- a/protocols/Tlen/src/tlen_presence.cpp +++ b/protocols/Tlen/src/tlen_presence.cpp @@ -203,7 +203,7 @@ static void TlenSendPresenceTo(TlenProtocol *proto, int status, char *to) // Send update for status (we won't handle ID_STATUS_OFFLINE here) // Note: tlenModeMsg is already encoded using TlenTextEncode() - EnterCriticalSection(&proto->modeMsgMutex); + mir_cslock lck(proto->modeMsgMutex); showBody = NULL; statusMsg = NULL; @@ -309,8 +309,6 @@ static void TlenSendPresenceTo(TlenProtocol *proto, int status, char *to) } setOwnStatusOnCList(proto, proto->m_iStatus, statusMsg); - - LeaveCriticalSection(&proto->modeMsgMutex); } -- cgit v1.2.3