From 7cedb42807647da0f1dd77efcf5939eccbd00dd7 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 16 May 2013 13:21:19 +0000 Subject: - useless header removed; - unused headers removed; git-svn-id: http://svn.miranda-ng.org/main/trunk@4669 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/MSN/src/msn_links.cpp | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'protocols/MSN/src/msn_links.cpp') diff --git a/protocols/MSN/src/msn_links.cpp b/protocols/MSN/src/msn_links.cpp index 57f84e2e06..6d170ca7c2 100644 --- a/protocols/MSN/src/msn_links.cpp +++ b/protocols/MSN/src/msn_links.cpp @@ -102,17 +102,15 @@ static INT_PTR ServiceParseMsnimLink(WPARAM, LPARAM lParam) /* does not yet check if email is current user */ if (hContact == NULL) { - ADDCONTACTSTRUCT acs = {0}; - PROTOSEARCHRESULT psr = {0}; + PROTOSEARCHRESULT psr = { sizeof(psr) }; + psr.flags = PSR_TCHAR; + psr.nick = email; + psr.email = email; + ADDCONTACTSTRUCT acs = {0}; acs.handleType = HANDLE_SEARCHRESULT; acs.szProto = proto->m_szModuleName; acs.psr = &psr; - - psr.cbSize = sizeof(psr); - psr.flags = PSR_TCHAR; - psr.nick = email; - psr.email = email; CallService(MS_ADDCONTACT_SHOW, 0, (LPARAM)&acs); } return 0; -- cgit v1.2.3