summaryrefslogtreecommitdiff
path: root/plugins/SMS/src/senddlg.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/SMS/src/senddlg.cpp')
-rw-r--r--plugins/SMS/src/senddlg.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/SMS/src/senddlg.cpp b/plugins/SMS/src/senddlg.cpp
index 34e1ec1177..63d353bdc2 100644
--- a/plugins/SMS/src/senddlg.cpp
+++ b/plugins/SMS/src/senddlg.cpp
@@ -573,7 +573,7 @@ HWND SendSMSWindowAdd(MCONTACT hContact)
ListMTItemAdd(&ssSMSSettings.lmtSendSMSWindowsListMT,&psswdWindowData->lmtListMTItem,psswdWindowData);
ListMTUnLock(&ssSMSSettings.lmtSendSMSWindowsListMT);
- LPTSTR lptszContactDisplayName=GetContactNameW(hContact);
+ LPTSTR lptszContactDisplayName = pcli->pfnGetContactDisplayName(hContact, 0);
TCHAR tszTitle[MAX_PATH];
mir_sntprintf(tszTitle, _countof(tszTitle), _T("%s - %s"), lptszContactDisplayName, TranslateT("Send SMS"));
SetWindowText(psswdWindowData->hWnd,tszTitle);
@@ -1054,8 +1054,8 @@ void AddContactPhonesToTreeViewParam(MCONTACT hContact,LPSTR lpszModule,LPSTR lp
{
if (tvis.hParent==NULL)
{
- tvis.item.pszText=GetContactNameW(hContact);
- tvis.hParent=TreeView_InsertItem(hWndList,&tvis);
+ tvis.item.pszText = pcli->pfnGetContactDisplayName(hContact, 0);
+ tvis.hParent=TreeView_InsertItem(hWndList, &tvis);
}
tvis.item.pszText=tszPhone;
TreeView_InsertItem(hWndList,&tvis);
@@ -1073,7 +1073,7 @@ void AddContactPhonesToTreeViewParam(MCONTACT hContact,LPSTR lpszModule,LPSTR lp
{
if (tvis.hParent==NULL)
{
- tvis.item.pszText=GetContactNameW(hContact);
+ tvis.item.pszText = pcli->pfnGetContactDisplayName(hContact, 0);
tvis.hParent=TreeView_InsertItem(hWndList,&tvis);
}
tvis.item.pszText=tszPhone;