summaryrefslogtreecommitdiff
path: root/src
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 /src
parent5623e34833d5e973f2c9897cd022d5ca6270904c (diff)
ME_SYSTEM_MODULELOAD & ME_SYSTEM_MODULEUNLOAD: handier parameter passing
Diffstat (limited to 'src')
-rw-r--r--src/mir_app/src/newplugins.cpp4
-rw-r--r--src/mir_app/src/pluginopts.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/mir_app/src/newplugins.cpp b/src/mir_app/src/newplugins.cpp
index 65bc621e7b..3af7efc073 100644
--- a/src/mir_app/src/newplugins.cpp
+++ b/src/mir_app/src/newplugins.cpp
@@ -289,7 +289,7 @@ bool Plugin_UnloadDyn(pluginEntry *p)
freePluginInstance(ppb->getInst());
- NotifyFastHook(hevUnloadModule, (WPARAM)&ppb->getInfo(), (LPARAM)ppb->getInst());
+ NotifyFastHook(hevUnloadModule, (WPARAM)&ppb, (LPARAM)ppb->getInst());
}
// mark default plugins to be loaded
@@ -517,7 +517,7 @@ LBL_Error:
if (CallPluginEventHook(ppb->getInst(), hModulesLoadedEvent, 0, 0) != 0)
goto LBL_Error;
- NotifyEventHooks(hevLoadModule, (WPARAM)&ppb->getInfo(), (LPARAM)ppb->getInst());
+ NotifyEventHooks(hevLoadModule, (WPARAM)ppb, (LPARAM)ppb->getInst());
}
mr.pImpl = ppe;
return true;
diff --git a/src/mir_app/src/pluginopts.cpp b/src/mir_app/src/pluginopts.cpp
index edafbd5a28..3c75861424 100644
--- a/src/mir_app/src/pluginopts.cpp
+++ b/src/mir_app/src/pluginopts.cpp
@@ -239,7 +239,7 @@ static bool LoadPluginDynamically(PluginListItemData *dat)
dat->bWasLoaded = true;
dat->hInst = ppb->getInst();
- NotifyFastHook(hevLoadModule, (WPARAM)&ppb->getInfo(), (LPARAM)ppb->getInst());
+ NotifyFastHook(hevLoadModule, (WPARAM)ppb, (LPARAM)ppb->getInst());
return true;
}