diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2015-04-29 15:45:02 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2015-04-29 15:45:02 +0000 |
commit | aff7ba10e6572a394b47f160674bcdee7d32e13b (patch) | |
tree | a9395216828fcc3d02932a81883ae8484d27a7c6 /protocols/Steam/src/steam_contacts.cpp | |
parent | 157801507625921ba1e39988fe54e27a9157daa4 (diff) |
minus critical section
git-svn-id: http://svn.miranda-ng.org/main/trunk@13243 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
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; } |