summaryrefslogtreecommitdiff
path: root/plugins/Clist_modern
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2021-03-25 15:32:16 +0300
committerGeorge Hazan <ghazan@miranda.im>2021-03-25 15:32:16 +0300
commitacdaebe9729b0d50168ff51657f1b8220302d82a (patch)
tree436c55d1add00175ed393dbaebad253da7ccc84c /plugins/Clist_modern
parent5623e34833d5e973f2c9897cd022d5ca6270904c (diff)
ME_SYSTEM_MODULELOAD & ME_SYSTEM_MODULEUNLOAD: handier parameter passing
Diffstat (limited to 'plugins/Clist_modern')
-rw-r--r--plugins/Clist_modern/src/modern_toolbar.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/Clist_modern/src/modern_toolbar.cpp b/plugins/Clist_modern/src/modern_toolbar.cpp
index 763cfc91f6..62d18be1a6 100644
--- a/plugins/Clist_modern/src/modern_toolbar.cpp
+++ b/plugins/Clist_modern/src/modern_toolbar.cpp
@@ -312,8 +312,8 @@ void CustomizeButton(HANDLE ttbid, HWND hWnd, LPARAM lParam);
static int Toolbar_ModuleReloaded(WPARAM wParam, LPARAM)
{
- PLUGININFOEX *pInfo = (PLUGININFOEX*)wParam;
- if (!mir_strcmpi(pInfo->shortName, "TopToolBar"))
+ auto &pInfo = HPLUGIN(wParam)->getInfo();
+ if (!mir_strcmpi(pInfo.shortName, "TopToolBar"))
TopToolbar_SetCustomProc(CustomizeButton, 0);
return 0;