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/OpenFolder/src/openFolder.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'plugins/OpenFolder') diff --git a/plugins/OpenFolder/src/openFolder.cpp b/plugins/OpenFolder/src/openFolder.cpp index 9765e517a6..4bb1a12aa4 100644 --- a/plugins/OpenFolder/src/openFolder.cpp +++ b/plugins/OpenFolder/src/openFolder.cpp @@ -2,7 +2,7 @@ int hLangpack = 0; HINSTANCE hInst; -HANDLE hServiceOpenFolder, hButtonTopToolbar; +HANDLE hButtonTopToolbar; PLUGININFOEX pluginInfoEx = { @@ -79,7 +79,7 @@ extern "C" int __declspec(dllexport) Load() { mir_getLP(&pluginInfoEx); - hServiceOpenFolder = CreateServiceFunction(MS_OPENFOLDER_OPEN, MenuCommand_OpenFolder); + CreateServiceFunction(MS_OPENFOLDER_OPEN, MenuCommand_OpenFolder); HookEvent(ME_SYSTEM_MODULESLOADED, ModulesLoaded); @@ -112,6 +112,5 @@ extern "C" int __declspec(dllexport) Load() extern "C" int __declspec(dllexport) Unload() { - DestroyServiceFunction(hServiceOpenFolder); return 0; } -- cgit v1.2.3