From 874bfd75183b781c0087087502133f5bea8ade1c Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 28 Mar 2019 00:01:57 +0300 Subject: Menu_ModifyItem to receive icolib handle, not HICON --- plugins/SeenPlugin/src/menu.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/SeenPlugin') diff --git a/plugins/SeenPlugin/src/menu.cpp b/plugins/SeenPlugin/src/menu.cpp index 75a35626d3..1683c303dc 100644 --- a/plugins/SeenPlugin/src/menu.cpp +++ b/plugins/SeenPlugin/src/menu.cpp @@ -50,7 +50,7 @@ int BuildContactMenu(WPARAM hContact, LPARAM) ptszName = ParseString(DEFAULT_MENUSTAMP, hContact); int flags = 0; - HICON hIcon = nullptr; + HANDLE hIcon = nullptr; if (!mir_wstrcmp(ptszName, TranslateT(""))) { if (IsWatchedProtocol(szProto)) flags |= CMIF_GRAYED; @@ -59,7 +59,7 @@ int BuildContactMenu(WPARAM hContact, LPARAM) } else if (g_plugin.getByte("ShowIcon", 1)) { int isetting = g_plugin.getWord(hContact, "StatusTriger", -1); - hIcon = Skin_LoadProtoIcon(szProto, isetting | 0x8000); + hIcon = Skin_GetProtoIcon(szProto, isetting | 0x8000); } Menu_ModifyItem(hmenuitem, ptszName, hIcon, flags); return 0; -- cgit v1.2.3