From e1a3a426a742028570baaee7430b2b5750734e4c Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 27 Dec 2017 17:19:20 +0300 Subject: obsolete structure ADDCONTACTSTRUCT, service MS_ADDCONTACT_SHOW and whole m_addcontact.h removed and replaced with Contact_Add* functions --- protocols/MSN/src/msn_links.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'protocols/MSN/src') diff --git a/protocols/MSN/src/msn_links.cpp b/protocols/MSN/src/msn_links.cpp index e6bf5641b8..3be384196a 100644 --- a/protocols/MSN/src/msn_links.cpp +++ b/protocols/MSN/src/msn_links.cpp @@ -21,8 +21,6 @@ along with this program. If not, see . #include "stdafx.h" #include "msn_proto.h" -#include - #include "m_assocmgr.h" static MCONTACT GetContact(wchar_t *arg, wchar_t **pemail, CMsnProto *proto) @@ -96,12 +94,7 @@ static INT_PTR ServiceParseMsnimLink(WPARAM, LPARAM lParam) psr.flags = PSR_UNICODE; psr.nick.w = email; psr.email.w = email; - - ADDCONTACTSTRUCT acs = { 0 }; - acs.handleType = HANDLE_SEARCHRESULT; - acs.szProto = proto->m_szModuleName; - acs.psr = &psr; - CallService(MS_ADDCONTACT_SHOW, 0, (LPARAM)&acs); + Contact_AddBySearch(proto->m_szModuleName, &psr); } return 0; } -- cgit v1.2.3