summaryrefslogtreecommitdiff
path: root/src/modules/database/mdatabasecache.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-05-11 08:32:03 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-05-11 08:32:03 +0000
commit1d4d3576ed3268ec809c98da2f262ccc1f094bad (patch)
treeeca45f33b245a901cf0af8931d2372108d6d8035 /src/modules/database/mdatabasecache.cpp
parentf70460473d0f616d9baa5481a165d0487e6fc8aa (diff)
missing required lock
git-svn-id: http://svn.miranda-ng.org/main/trunk@4630 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/modules/database/mdatabasecache.cpp')
-rw-r--r--src/modules/database/mdatabasecache.cpp2
1 files changed, 2 insertions, 0 deletions
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];
}