diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/plugins/newplugins.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/plugins/newplugins.cpp b/src/modules/plugins/newplugins.cpp index 7ce226db19..1800080c82 100644 --- a/src/modules/plugins/newplugins.cpp +++ b/src/modules/plugins/newplugins.cpp @@ -347,8 +347,6 @@ int Plugin_UnloadDyn(pluginEntry* p) if ( CallPluginEventHook(p->bpi.hInst, hOkToExitEvent, 0, 0) != 0)
return FALSE;
- NotifyEventHooks(hevUnloadModule, (WPARAM)p->bpi.pluginInfo, (LPARAM)p->bpi.hInst);
-
CallPluginEventHook(p->bpi.hInst, hPreShutdownEvent, 0, 0);
CallPluginEventHook(p->bpi.hInst, hShutdownEvent, 0, 0);
}
@@ -365,6 +363,8 @@ int Plugin_UnloadDyn(pluginEntry* p) KillModuleExtraIcons(hLangpack);
}
+ NotifyEventHooks(hevUnloadModule, (WPARAM)p->bpi.pluginInfo, (LPARAM)p->bpi.hInst);
+
Plugin_Uninit(p);
// load default plugins instead of the unloaded one
|