diff options
author | George Hazan <george.hazan@gmail.com> | 2013-09-07 20:19:08 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-09-07 20:19:08 +0000 |
commit | 052c41ae312ff8ab0cec8b739070790cd98042c9 (patch) | |
tree | 8a5d33d92c2507f7fc2b2ace3b53a00c170b0ad2 /plugins/IEView/src/HTMLBuilder.cpp | |
parent | 1a8fbb98e30b55aee908e3ad2382622a0688c635 (diff) |
crash fix for IEView
git-svn-id: http://svn.miranda-ng.org/main/trunk@6010 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
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)"));
}
|