summaryrefslogtreecommitdiff
path: root/plugins/TopToolBar
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/TopToolBar')
-rw-r--r--plugins/TopToolBar/src/toolbar.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/TopToolBar/src/toolbar.cpp b/plugins/TopToolBar/src/toolbar.cpp
index 2b536faf2d..777c36c536 100644
--- a/plugins/TopToolBar/src/toolbar.cpp
+++ b/plugins/TopToolBar/src/toolbar.cpp
@@ -551,9 +551,9 @@ int OnPluginLoad(WPARAM, LPARAM lParam)
/////////////////////////////////////////////////////////////////////////////////////////
// Removes buttons of plugins being unloaded. lParam = HINSTANCE
-int OnPluginUnload(WPARAM, LPARAM lParam)
+int OnPluginUnload(WPARAM wParam, LPARAM)
{
- HPLUGIN pPlugin = &GetPluginByInstance((HINSTANCE)lParam);
+ HPLUGIN pPlugin = HPLUGIN(wParam);
if (pPlugin) {
bool bNeedUpdate = false;
mir_cslock lck(csButtonsHook);