From 6a08d8f762284e3ad8ddc2307287bef8a261989d Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Sun, 31 May 2015 18:56:28 +0000 Subject: Tox: some changes git-svn-id: http://svn.miranda-ng.org/main/trunk@13947 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Tox/src/tox_utils.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'protocols/Tox/src/tox_utils.cpp') diff --git a/protocols/Tox/src/tox_utils.cpp b/protocols/Tox/src/tox_utils.cpp index 72d0c1481f..ccacbc0422 100644 --- a/protocols/Tox/src/tox_utils.cpp +++ b/protocols/Tox/src/tox_utils.cpp @@ -87,7 +87,7 @@ INT_PTR CToxProto::ParseToxUri(WPARAM, LPARAM lParam) return 1; CToxProto *proto = NULL; - for (size_t i = 0; i < Accounts.getCount(); i++) + for (int i = 0; i < Accounts.getCount(); i++) { if (Accounts[i]->IsOnline()) { @@ -102,8 +102,8 @@ INT_PTR CToxProto::ParseToxUri(WPARAM, LPARAM lParam) return 1; PROTOSEARCHRESULT psr = { sizeof(psr) }; - psr.flags = PSR_TCHAR; - psr.id.t = mir_tstrdup(&uri[4]); + psr.flags = PSR_UTF8; + psr.id.a = mir_t2a(&uri[4]); ADDCONTACTSTRUCT acs = { HANDLE_SEARCHRESULT }; acs.szProto = proto->m_szModuleName; -- cgit v1.2.3