summaryrefslogtreecommitdiff
path: root/plugins/ClientChangeNotify
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-04-05 22:10:25 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-04-05 22:10:25 +0300
commit35e2289786a7f1542573d1a58ebc971970ea981c (patch)
treeda8887c793611fdbf6072fd477fd8c01c60b8b02 /plugins/ClientChangeNotify
parentf7c00d6dc53774d16b9721e79ed5d4017af63884 (diff)
CLIST_INTERFACE::pfnGetContactDisplayName => Clist_GetContactDisplayName
Diffstat (limited to 'plugins/ClientChangeNotify')
-rw-r--r--plugins/ClientChangeNotify/src/ClientChangeNotify.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/plugins/ClientChangeNotify/src/ClientChangeNotify.cpp b/plugins/ClientChangeNotify/src/ClientChangeNotify.cpp
index 13d278ad16..2e1b3c7a7e 100644
--- a/plugins/ClientChangeNotify/src/ClientChangeNotify.cpp
+++ b/plugins/ClientChangeNotify/src/ClientChangeNotify.cpp
@@ -19,7 +19,6 @@
#include "stdafx.h"
-CLIST_INTERFACE *pcli;
HINSTANCE g_hInstance;
HANDLE g_hMainThread;
HGENMENU g_hTogglePopupsMenuItem;
@@ -167,7 +166,7 @@ void ShowPopup(SHOWPOPUP_DATA *sd)
ppd.lchIcon = Skin_LoadProtoIcon(szProto, db_get_w(sd->hContact, szProto, "Status", ID_STATUS_OFFLINE));
pdata->hIcon = nullptr;
}
- wcsncpy(ppd.lptzContactName, (wchar_t*)pcli->pfnGetContactDisplayName(sd->hContact, 0), _countof(ppd.lptzContactName) - 1);
+ wcsncpy(ppd.lptzContactName, Clist_GetContactDisplayName(sd->hContact), _countof(ppd.lptzContactName) - 1);
wcsncpy(ppd.lptzText, PopupText, _countof(ppd.lptzText) - 1);
ppd.colorBack = (sd->PopupOptPage->GetValue(IDC_POPUPOPTDLG_DEFBGCOLOUR) ? 0 : sd->PopupOptPage->GetValue(IDC_POPUPOPTDLG_BGCOLOUR));
ppd.colorText = (sd->PopupOptPage->GetValue(IDC_POPUPOPTDLG_DEFTEXTCOLOUR) ? 0 : sd->PopupOptPage->GetValue(IDC_POPUPOPTDLG_TEXTCOLOUR));
@@ -351,7 +350,6 @@ int MirandaLoaded(WPARAM, LPARAM)
extern "C" int __declspec(dllexport) Load(void)
{
mir_getLP(&pluginInfo);
- pcli = Clist_GetInterface();
HookEvent(ME_SYSTEM_MODULESLOADED, MirandaLoaded);
DuplicateHandle(GetCurrentProcess(), GetCurrentThread(), GetCurrentProcess(), &g_hMainThread, THREAD_SET_CONTEXT, false, 0);