summaryrefslogtreecommitdiff
path: root/protocols/Tox/src/tox_contacts.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Tox/src/tox_contacts.cpp')
-rw-r--r--protocols/Tox/src/tox_contacts.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/protocols/Tox/src/tox_contacts.cpp b/protocols/Tox/src/tox_contacts.cpp
index 515aa13b3b..e9e3622da9 100644
--- a/protocols/Tox/src/tox_contacts.cpp
+++ b/protocols/Tox/src/tox_contacts.cpp
@@ -56,19 +56,17 @@ MCONTACT CToxProto::FindContact(const std::string &id)
{
MCONTACT hContact = NULL;
- //EnterCriticalSection(&contact_search_lock);
+ //mir_cs(contact_search_lock);
for (hContact = db_find_first(m_szModuleName); hContact; hContact = db_find_next(hContact, m_szModuleName))
{
std::string contactId = ToxAddressToId(getStringA(hContact, TOX_SETTINGS_ID));
- if (id.compare(contactId) == 0)
+ if (id == contactId)
{
break;
}
}
- //LeaveCriticalSection(&contact_search_lock);
-
return hContact;
}