From 1ce3da1cca093143d9629bc46e221dd8be962e12 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 31 May 2015 11:46:05 +0000 Subject: - MAllStrings: a handy union to hold an incoming string parameter of any type; - FNAMECHAR: atavism extincted; - PROTOSEARCHRESULT: structure prepared to use results of any type, including utf git-svn-id: http://svn.miranda-ng.org/main/trunk@13932 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Tox/src/tox_proto.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'protocols/Tox/src/tox_proto.cpp') diff --git a/protocols/Tox/src/tox_proto.cpp b/protocols/Tox/src/tox_proto.cpp index c9762e2360..7ec780634d 100644 --- a/protocols/Tox/src/tox_proto.cpp +++ b/protocols/Tox/src/tox_proto.cpp @@ -63,7 +63,7 @@ DWORD_PTR CToxProto::GetCaps(int type, MCONTACT) MCONTACT CToxProto::AddToList(int flags, PROTOSEARCHRESULT *psr) { - ptrA address(mir_t2a(psr->id)); + ptrA address(mir_t2a(psr->id.t)); ptrA myAddress(getStringA(NULL, TOX_SETTINGS_ID)); if (strnicmp(address, myAddress, TOX_PUBLIC_KEY_SIZE) == 0) { @@ -75,8 +75,8 @@ MCONTACT CToxProto::AddToList(int flags, PROTOSEARCHRESULT *psr) ShowNotification(TranslateT("Contact already in your contact list"), 0, hContact); return NULL; } - ptrT nick(mir_tstrdup(psr->nick)); - ptrT dnsId(mir_tstrdup(psr->email)); + ptrT nick(mir_tstrdup(psr->nick.t)); + ptrT dnsId(mir_tstrdup(psr->email.t)); return AddContact(address, nick, dnsId, flags & PALF_TEMPORARY); } -- cgit v1.2.3