From 3710c84df897f6f816692a706189cb0da6b724dc Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 17 Jun 2012 20:32:43 +0000 Subject: more about dynamic plugins loading git-svn-id: http://svn.miranda-ng.org/main/trunk@467 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/modules/plugins/pluginopts.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/modules/plugins') diff --git a/src/modules/plugins/pluginopts.cpp b/src/modules/plugins/pluginopts.cpp index 3d87bc5540..46b7823145 100644 --- a/src/modules/plugins/pluginopts.cpp +++ b/src/modules/plugins/pluginopts.cpp @@ -167,7 +167,7 @@ LBL_Error: goto LBL_Error; dat->hInst = pPlug->bpi.hInst; - CallHookSubscribers(hevLoadModule, (WPARAM)pPlug->bpi.InfoEx, 0); + CallHookSubscribers(hevLoadModule, (WPARAM)pPlug->bpi.InfoEx, (LPARAM)pPlug->bpi.hInst); return TRUE; } @@ -184,7 +184,7 @@ static int UnloadPluginDynamically(PluginListItemData* dat) if ( CallPluginEventHook(pPlug->bpi.hInst, hOkToExitEvent, 0, 0) != 0) return FALSE; - CallHookSubscribers(hevUnloadModule, (WPARAM)pPlug->bpi.InfoEx, 0); + CallHookSubscribers(hevUnloadModule, (WPARAM)pPlug->bpi.InfoEx, (LPARAM)pPlug->bpi.hInst); CallPluginEventHook(pPlug->bpi.hInst, hPreShutdownEvent, 0, 0); CallPluginEventHook(pPlug->bpi.hInst, hShutdownEvent, 0, 0); -- cgit v1.2.3