summaryrefslogtreecommitdiff
path: root/protocols/Steam/src/steam_contacts.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Steam/src/steam_contacts.cpp')
-rw-r--r--protocols/Steam/src/steam_contacts.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/protocols/Steam/src/steam_contacts.cpp b/protocols/Steam/src/steam_contacts.cpp
index e3c08b103c..8fca50265a 100644
--- a/protocols/Steam/src/steam_contacts.cpp
+++ b/protocols/Steam/src/steam_contacts.cpp
@@ -82,7 +82,7 @@ MCONTACT CSteamProto::FindContact(const char *steamId)
{
MCONTACT hContact = NULL;
- EnterCriticalSection(&this->contact_search_lock);
+ mir_cslock lck(this->contact_search_lock);
for (hContact = db_find_first(this->m_szModuleName); hContact; hContact = db_find_next(hContact, this->m_szModuleName))
{
@@ -91,8 +91,6 @@ MCONTACT CSteamProto::FindContact(const char *steamId)
break;
}
- LeaveCriticalSection(&this->contact_search_lock);
-
return hContact;
}