From acdaebe9729b0d50168ff51657f1b8220302d82a Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 25 Mar 2021 15:32:16 +0300 Subject: ME_SYSTEM_MODULELOAD & ME_SYSTEM_MODULEUNLOAD: handier parameter passing --- src/mir_app/src/newplugins.cpp | 4 ++-- src/mir_app/src/pluginopts.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/mir_app') 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; } -- cgit v1.2.3