From 3e9e96f6718b13c069138fb40f24f065ac03c6b7 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 18 Sep 2017 18:33:09 +0300 Subject: unneeded calls of DestroyServiceFunction() removed --- plugins/BossKeyPlus/src/BossKey.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'plugins/BossKeyPlus/src/BossKey.cpp') diff --git a/plugins/BossKeyPlus/src/BossKey.cpp b/plugins/BossKeyPlus/src/BossKey.cpp index 02e0ac70de..df57ea1998 100644 --- a/plugins/BossKeyPlus/src/BossKey.cpp +++ b/plugins/BossKeyPlus/src/BossKey.cpp @@ -22,7 +22,6 @@ HINSTANCE g_hInstance; CLIST_INTERFACE *pcli; HGENMENU g_hMenuItem; -HANDLE g_hHideService; HWINEVENTHOOK g_hWinHook; HWND g_hListenWindow, g_hDlgPass, hOldForegroundWindow; HWND_ITEM *g_pMirWnds; // a pretty simple linked list @@ -708,7 +707,7 @@ extern "C" int __declspec(dllexport) Load(void) Icon_Register(g_hInstance, "BossKey", iconList, _countof(iconList)); - g_hHideService = CreateServiceFunction(MS_BOSSKEY_HIDE, BossKeyHideMiranda); // Create service + CreateServiceFunction(MS_BOSSKEY_HIDE, BossKeyHideMiranda); // Create service HookEvent(ME_SYSTEM_MODULESLOADED, MirandaLoaded); return 0; @@ -721,8 +720,6 @@ extern "C" int __declspec(dllexport) Unload(void) if (g_hWinHook != 0) UnhookWinEvent(g_hWinHook); - DestroyServiceFunction(g_hHideService); - if (g_hListenWindow) { WTSUnRegisterSessionNotification(g_hListenWindow); -- cgit v1.2.3