From ed88be7be4129fd6d539d4f7318977621ffde251 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 28 Jul 2013 20:41:12 +0000 Subject: additional lock to prevent rare crashes git-svn-id: http://svn.miranda-ng.org/main/trunk@5519 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/JabberG/src/jabber_util.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'protocols') diff --git a/protocols/JabberG/src/jabber_util.cpp b/protocols/JabberG/src/jabber_util.cpp index f9d7f926e0..48e492df91 100644 --- a/protocols/JabberG/src/jabber_util.cpp +++ b/protocols/JabberG/src/jabber_util.cpp @@ -930,6 +930,7 @@ TCHAR* CJabberProto::GetClientJID(const TCHAR *jid, TCHAR *dest, size_t destLen) _tcsncpy_s(dest, destLen, jid, _TRUNCATE); TCHAR *p = _tcschr(dest, '/'); + mir_cslock lck(m_csLists); JABBER_LIST_ITEM *LI = ListGetItemPtr(LIST_ROSTER, jid); if (LI != NULL) { if (LI->resourceCount == 1 && !lstrcmp(LI->pResources->szCapsNode, _T("http://talk.google.com/xmpp/bot/caps"))) { -- cgit v1.2.3