From 1d4d3576ed3268ec809c98da2f262ccc1f094bad Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 11 May 2013 08:32:03 +0000 Subject: missing required lock git-svn-id: http://svn.miranda-ng.org/main/trunk@4630 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/modules/database/mdatabasecache.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/modules/database') diff --git a/src/modules/database/mdatabasecache.cpp b/src/modules/database/mdatabasecache.cpp index 6074d85bf9..30ad6beb3b 100644 --- a/src/modules/database/mdatabasecache.cpp +++ b/src/modules/database/mdatabasecache.cpp @@ -71,6 +71,8 @@ DBCachedContact* MDatabaseCache::AddContactToCache(HANDLE hContact) DBCachedContact* MDatabaseCache::GetCachedContact(HANDLE hContact) { + mir_cslock lck(m_cs); + int index = m_lContacts.getIndex((DBCachedContact*)&hContact); return (index == -1) ? NULL : m_lContacts[index]; } -- cgit v1.2.3