From 6ac63284a8f93f977db66673727d4995a86764c4 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 10 Mar 2013 12:45:32 +0000 Subject: various TTB initialization issues git-svn-id: http://svn.miranda-ng.org/main/trunk@3957 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/AutoShutdown/src/main.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'plugins/AutoShutdown/src/main.cpp') diff --git a/plugins/AutoShutdown/src/main.cpp b/plugins/AutoShutdown/src/main.cpp index b65d990d7a..da5450c630 100644 --- a/plugins/AutoShutdown/src/main.cpp +++ b/plugins/AutoShutdown/src/main.cpp @@ -21,7 +21,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include "common.h" HINSTANCE hInst; -static HANDLE hHookModulesLoaded; int hLangpack; PLUGININFOEX pluginInfo = { @@ -53,7 +52,7 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, VOID *pReserved) static int ShutdownModulesLoaded(WPARAM wParam,LPARAM lParam) { - if(ServiceExists("DBEditorpp/RegisterSingleModule")) + if ( ServiceExists("DBEditorpp/RegisterSingleModule")) CallService("DBEditorpp/RegisterSingleModule",(WPARAM)"AutoShutdown",0); return 0; @@ -82,14 +81,12 @@ extern "C" __declspec(dllexport) int Load(void) InitSettingsDlg(); InitOptions(); - hHookModulesLoaded = HookEvent(ME_SYSTEM_MODULESLOADED, ShutdownModulesLoaded); + HookEvent(ME_SYSTEM_MODULESLOADED, ShutdownModulesLoaded); return 0; } extern "C" __declspec(dllexport) int Unload(void) { - UnhookEvent(hHookModulesLoaded); - UninitOptions(); UninitSettingsDlg(); /* before UninitWatcher() */ UninitWatcher(); /* before UninitFrame() */ -- cgit v1.2.3