diff options
Diffstat (limited to 'plugins/UserInfoEx')
-rw-r--r-- | plugins/UserInfoEx/src/ex_import/svc_ExImport.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/plugins/UserInfoEx/src/ex_import/svc_ExImport.cpp b/plugins/UserInfoEx/src/ex_import/svc_ExImport.cpp index e1c707d590..e2dd3d4ee7 100644 --- a/plugins/UserInfoEx/src/ex_import/svc_ExImport.cpp +++ b/plugins/UserInfoEx/src/ex_import/svc_ExImport.cpp @@ -46,23 +46,24 @@ static void DisplayNameToFileName(lpExImParam ExImContact, LPSTR pszFileName, WO case EXIM_GROUP:
mir_strncpy(pszFileName, Translate("all Contacts"), cchFileName);
return;
+
case EXIM_CONTACT:
if (ExImContact->hContact == NULL) {
mir_strncpy(pszFileName, Translate("Owner"), cchFileName);
return;
}
- else {
- disp = (LPCSTR)pcli->pfnGetContactDisplayName(ExImContact->hContact, NULL);
- }
+
+ disp = temp = mir_t2a(pcli->pfnGetContactDisplayName(ExImContact->hContact, NULL));
break;
+
case EXIM_SUBGROUP:
temp = mir_t2a(ExImContact->ptszName);
disp = temp;
break;
+
case EXIM_ACCOUNT:
PROTOACCOUNT* acc = Proto_GetAccount(ExImContact->pszName);
- temp = mir_t2a(acc->tszAccountName);
- disp = temp;
+ disp = temp = mir_t2a(acc->tszAccountName);
break;
}
|