diff options
author | MikalaiR <nikolay.romanovich@narod.ru> | 2015-07-30 18:54:01 +0000 |
---|---|---|
committer | MikalaiR <nikolay.romanovich@narod.ru> | 2015-07-30 18:54:01 +0000 |
commit | 5dc07cdc831794cf53d754984cbc5cf93d15fcd0 (patch) | |
tree | be383a676e8c429a064b07fcc1b04a426d50278e /protocols/SkypeWeb | |
parent | 6adf63a8d746ad357a3bbfedebd2281080241f19 (diff) |
SkypeWeb: fix crash on "?add" uri
git-svn-id: http://svn.miranda-ng.org/main/trunk@14759 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/SkypeWeb')
-rw-r--r-- | protocols/SkypeWeb/src/skype_utils.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/protocols/SkypeWeb/src/skype_utils.cpp b/protocols/SkypeWeb/src/skype_utils.cpp index bca4c9e76b..a5c6538dbe 100644 --- a/protocols/SkypeWeb/src/skype_utils.cpp +++ b/protocols/SkypeWeb/src/skype_utils.cpp @@ -522,9 +522,6 @@ INT_PTR CSkypeProto::ParseSkypeUriService(WPARAM, LPARAM lParam) if (szJid == NULL)
return 1;
- // skip //
- for (++szJid; *szJid == _T('/'); ++szJid);
-
// empty jid?
if (!*szJid)
return 1;
@@ -569,17 +566,18 @@ INT_PTR CSkypeProto::ParseSkypeUriService(WPARAM, LPARAM lParam) MCONTACT hContact = FindContact(_T2A(szJid));
if (hContact == NULL)
{
- PROTOSEARCHRESULT psr = { 0 };
+ PROTOSEARCHRESULT psr;
+ psr.cbSize = sizeof(psr);
psr.id.t = mir_tstrdup(szJid);
psr.nick.t = mir_tstrdup(szJid);
- psr.flags = PSR_TCHAR;
+ psr.flags = PSR_UNICODE;
ADDCONTACTSTRUCT acs;
acs.handleType = HANDLE_SEARCHRESULT;
acs.szProto = m_szModuleName;
acs.psr = &psr;
- CallServiceSync(MS_ADDCONTACT_SHOW, 0, (LPARAM)&acs);
+ CallService(MS_ADDCONTACT_SHOW, 0, (LPARAM)&acs);
}
return 0;
}
|