summaryrefslogtreecommitdiff
path: root/plugins/Cln_skinedit/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-09-18 18:33:09 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-09-18 18:33:09 +0300
commit3e9e96f6718b13c069138fb40f24f065ac03c6b7 (patch)
treed09301e8d63cf2bc70601fe683992440d4e2e086 /plugins/Cln_skinedit/src
parentb5de62080a2384e9f66d7bafbf971aa5b4b7c0c1 (diff)
unneeded calls of DestroyServiceFunction() removed
Diffstat (limited to 'plugins/Cln_skinedit/src')
-rw-r--r--plugins/Cln_skinedit/src/main.cpp18
1 files changed, 4 insertions, 14 deletions
diff --git a/plugins/Cln_skinedit/src/main.cpp b/plugins/Cln_skinedit/src/main.cpp
index 4ea0912429..a532871ec1 100644
--- a/plugins/Cln_skinedit/src/main.cpp
+++ b/plugins/Cln_skinedit/src/main.cpp
@@ -895,12 +895,11 @@ static INT_PTR SkinEdit_Invoke(WPARAM, LPARAM lParam)
return (INT_PTR)psd->hwndSkinEdit;
}
-static HANDLE hSvc_invoke = 0, hSvc_fillby = 0;
static int LoadModule()
{
- hSvc_invoke = CreateServiceFunction(MS_CLNSE_INVOKE, SkinEdit_Invoke);
- hSvc_fillby = CreateServiceFunction(MS_CLNSE_FILLBYCURRENTSEL, SkinEdit_FillByCurrentSel);
+ CreateServiceFunction(MS_CLNSE_INVOKE, SkinEdit_Invoke);
+ CreateServiceFunction(MS_CLNSE_FILLBYCURRENTSEL, SkinEdit_FillByCurrentSel);
return 0;
}
@@ -912,21 +911,12 @@ extern "C" __declspec(dllexport) PLUGININFOEX * MirandaPluginInfoEx(DWORD)
extern "C" int __declspec(dllexport) Load(void)
{
mir_getLP(&pluginInfo);
- return(LoadModule());
-}
-
-static int ShutdownProc(WPARAM, LPARAM)
-{
- if (hSvc_invoke)
- DestroyServiceFunction(hSvc_invoke);
- if (hSvc_fillby)
- DestroyServiceFunction(hSvc_fillby);
- return 0;
+ return LoadModule();
}
extern "C" int __declspec(dllexport) Unload(void)
{
- return ShutdownProc(0, 0);
+ return 0;
}
BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD, LPVOID)