summaryrefslogtreecommitdiff
path: root/plugins/AuthState
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/AuthState')
-rw-r--r--plugins/AuthState/src/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/AuthState/src/main.cpp b/plugins/AuthState/src/main.cpp
index e7dd62fd74..4771928552 100644
--- a/plugins/AuthState/src/main.cpp
+++ b/plugins/AuthState/src/main.cpp
@@ -183,7 +183,7 @@ int onModulesLoaded(WPARAM wParam,LPARAM lParam)
return 0;
}
-int onSystemOKToExit(WPARAM wParam,LPARAM lParam)
+static int onShutdown(WPARAM wParam,LPARAM lParam)
{
DestroyServiceFunction(hAuthMenuSelected);
return 0;
@@ -194,7 +194,7 @@ extern "C" int __declspec(dllexport) Load(void)
mir_getLP(&pluginInfo);
HookEvent(ME_SYSTEM_MODULESLOADED, onModulesLoaded);
- HookEvent(ME_SYSTEM_OKTOEXIT,onSystemOKToExit);
+ HookEvent(ME_SYSTEM_PRESHUTDOWN, onShutdown);
HookEvent(ME_DB_CONTACT_SETTINGCHANGED, onContactSettingChanged);
bUseAuthIcon = db_get_b(NULL, MODULENAME, "EnableAuthIcon", 1);