summaryrefslogtreecommitdiff
path: root/protocols/Tox/src/tox_contacts.cpp
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2014-08-25 18:32:33 +0000
committerAlexander Lantsev <aunsane@gmail.com>2014-08-25 18:32:33 +0000
commit0a776a22a99c20a23763aac28209a00a36126b7b (patch)
tree57f77054ea993310d92c54448f2896d008a9800c /protocols/Tox/src/tox_contacts.cpp
parent9afd590f4fd860d3d023203137129c8870bb8579 (diff)
Tox:
- updated tox core - fixdd contacts adding - some code for file sending git-svn-id: http://svn.miranda-ng.org/main/trunk@10320 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
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;
}