diff options
Diffstat (limited to 'plugins/StatusManager/src/KeepStatus/keepstatus.cpp')
-rw-r--r-- | plugins/StatusManager/src/KeepStatus/keepstatus.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/plugins/StatusManager/src/KeepStatus/keepstatus.cpp b/plugins/StatusManager/src/KeepStatus/keepstatus.cpp index f975b64793..1cc209f0c7 100644 --- a/plugins/StatusManager/src/KeepStatus/keepstatus.cpp +++ b/plugins/StatusManager/src/KeepStatus/keepstatus.cpp @@ -19,6 +19,8 @@ #include "..\stdafx.h" +int hKSLangpack = 0; + struct TimerInfo { int timer; int timeout; @@ -1214,6 +1216,9 @@ int KSModuleLoaded(WPARAM, LPARAM) void KeepStatusLoad() { + MUUID muidLast = MIID_LAST; + hKSLangpack = GetPluginLangId(muidLast, 0); + hKSModuleLoadedHook = HookEvent(ME_SYSTEM_MODULESLOADED, KSModuleLoaded); CreateHookableEvent(ME_KS_CONNECTIONEVENT); @@ -1237,9 +1242,6 @@ void KeepStatusUnload() DestroyServiceFunction(hIsProtoEnabled); DestroyServiceFunction(hAnnounceStat); - if (hMainThread) - CloseHandle(hMainThread); - DestroyHookableEvent(hConnectionEvent); UnhookEvent(hKSModuleLoadedHook); |