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/NoHistory/src/dllmain.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'plugins/NoHistory') diff --git a/plugins/NoHistory/src/dllmain.cpp b/plugins/NoHistory/src/dllmain.cpp index 3d95c96dd8..ebf869ffdf 100644 --- a/plugins/NoHistory/src/dllmain.cpp +++ b/plugins/NoHistory/src/dllmain.cpp @@ -9,7 +9,6 @@ static int SrmmMenu_ProcessEvent(WPARAM wParam, LPARAM lParam); static int SrmmMenu_ProcessIconClick(WPARAM wParam, LPARAM lParam); HGENMENU hMenuToggle, hMenuClear; -HANDLE hServiceToggle, hServiceClear; mir_cs list_cs; @@ -282,16 +281,13 @@ extern "C" __declspec (dllexport) int Load() HookEvent(ME_DB_EVENT_ADDED, OnDatabaseEventAdd); HookEvent(ME_SYSTEM_MODULESLOADED, ModulesLoaded); - hServiceToggle = CreateServiceFunction(MS_NOHISTORY_TOGGLE, ServiceToggle); - hServiceClear = CreateServiceFunction(MS_NOHISTORY_CLEAR, ServiceClear); + CreateServiceFunction(MS_NOHISTORY_TOGGLE, ServiceToggle); + CreateServiceFunction(MS_NOHISTORY_CLEAR, ServiceClear); return 0; } extern "C" __declspec (dllexport) int Unload(void) { - DestroyServiceFunction(hServiceToggle); - DestroyServiceFunction(hServiceClear); - RemoveReadEvents(); return 0; } -- cgit v1.2.3