summaryrefslogtreecommitdiff
path: root/plugins/AuthState/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/AuthState/main.cpp')
-rw-r--r--plugins/AuthState/main.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/plugins/AuthState/main.cpp b/plugins/AuthState/main.cpp
index c08a7bca86..ba37eeeb3d 100644
--- a/plugins/AuthState/main.cpp
+++ b/plugins/AuthState/main.cpp
@@ -26,7 +26,6 @@
#include "commonheaders.h"
HINSTANCE g_hInst;
-PLUGINLINK *pluginLink;
static HANDLE hHookModulesLoaded = NULL, hSystemOKToExit = NULL, hOptInitialise = NULL, hIcoLibIconsChanged = NULL;
static HANDLE hHookExtraIconsRebuild = NULL, hHookExtraIconsApply = NULL, hContactSettingChanged = NULL, hContactAdded = NULL;
static HANDLE hPrebuildContactMenu = NULL, hAuthMenuSelected = NULL;
@@ -322,10 +321,10 @@ int onSystemOKToExit(WPARAM wParam,LPARAM lParam)
return 0;
}
-extern "C" int __declspec(dllexport) Load(PLUGINLINK *link)
+extern "C" int __declspec(dllexport) Load(void)
{
- pluginLink = link;
- mir_getLP(&pluginInfo);
+ mir_getLP(&pluginInfo);
+
hHookModulesLoaded = HookEvent(ME_SYSTEM_MODULESLOADED, onModulesLoaded);
hSystemOKToExit = HookEvent(ME_SYSTEM_OKTOEXIT,onSystemOKToExit);
hContactSettingChanged = HookEvent(ME_DB_CONTACT_SETTINGCHANGED, onContactSettingChanged);