diff options
Diffstat (limited to 'protocols/Steam/src/steam_contacts.cpp')
-rw-r--r-- | protocols/Steam/src/steam_contacts.cpp | 4 |
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; } |