diff options
Diffstat (limited to 'plugins/IEView/src/HTMLBuilder.cpp')
-rw-r--r-- | plugins/IEView/src/HTMLBuilder.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/IEView/src/HTMLBuilder.cpp b/plugins/IEView/src/HTMLBuilder.cpp index 6934a72764..425db0a236 100644 --- a/plugins/IEView/src/HTMLBuilder.cpp +++ b/plugins/IEView/src/HTMLBuilder.cpp @@ -280,10 +280,10 @@ wchar_t *HTMLBuilder::getContactName(HANDLE hContact, const char *szProto) }
if (szName != NULL) return szName;
- TCHAR *szNameStr = (TCHAR *)CallService(MS_CLIST_GETCONTACTDISPLAYNAME, (WPARAM)hContact, GCDNF_TCHAR);
- if (szNameStr != NULL) {
- return szNameStr;
- }
+ TCHAR *szNameStr = pcli->pfnGetContactDisplayName(hContact, 0);
+ if (szNameStr != NULL)
+ return mir_tstrdup(szNameStr);
+
return mir_tstrdup(TranslateT("(Unknown Contact)"));
}
|