summaryrefslogtreecommitdiff
path: root/plugins/UserInfoEx/src/ex_import
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2016-05-18 12:31:56 +0000
committerGeorge Hazan <george.hazan@gmail.com>2016-05-18 12:31:56 +0000
commit504307b184517248795d3ae4301969bfa93a050a (patch)
treef3a9607ae039da405fc4ad597b96b7fc60122cfb /plugins/UserInfoEx/src/ex_import
parent8d80538230c30daa2d8742e19421c49e90fdb13d (diff)
unused proprietary services removed from UserInfoEx
git-svn-id: http://svn.miranda-ng.org/main/trunk@16848 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/UserInfoEx/src/ex_import')
-rw-r--r--plugins/UserInfoEx/src/ex_import/classExImContactBase.cpp19
1 files changed, 8 insertions, 11 deletions
diff --git a/plugins/UserInfoEx/src/ex_import/classExImContactBase.cpp b/plugins/UserInfoEx/src/ex_import/classExImContactBase.cpp
index 6963b75b55..102fe49b42 100644
--- a/plugins/UserInfoEx/src/ex_import/classExImContactBase.cpp
+++ b/plugins/UserInfoEx/src/ex_import/classExImContactBase.cpp
@@ -290,17 +290,14 @@ void CExImContactBase::toIni(FILE* file, int modCount)
strncpy_s(name, "(UNKNOWN)", _TRUNCATE);
}
else {
- // Proto loadet - GetContactName(hContact,pszProto,0)
+ // Proto loaded - GetContactName(hContact,pszProto,0)
LPSTR pszCI = NULL;
- CONTACTINFO ci;
- memset(&ci, 0, sizeof(ci));
-
- ci.cbSize = sizeof(ci);
- ci.hContact = _hContact;
- ci.szProto = _pszProto;
- ci.dwFlag = CNF_DISPLAY;
-
- if (!GetContactInfo(NULL, (LPARAM) &ci)) {
+ CONTACTINFO ci = {};
+ ci.cbSize = sizeof(ci);
+ ci.hContact = _hContact;
+ ci.szProto = _pszProto;
+ ci.dwFlag = CNF_DISPLAY;
+ if (!CallService(MS_CONTACT_GETCONTACTINFO, NULL, (LPARAM)&ci)) {
// CNF_DISPLAY always returns a string type
pszCI = (LPSTR)ci.pszVal;
}
@@ -312,7 +309,7 @@ void CExImContactBase::toIni(FILE* file, int modCount)
mir_free(pszCI);
mir_free(pszUID);
- } // end else (Proto loadet)
+ } // end else (Proto loaded)
// it is not the best solution (but still works if only basic modules export) - need rework
if (modCount > 3)