diff options
Diffstat (limited to 'protocols/MSN/src/msn_links.cpp')
-rw-r--r-- | protocols/MSN/src/msn_links.cpp | 12 |
1 files changed, 5 insertions, 7 deletions
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;
|