diff options
author | MikalaiR <nikolay.romanovich@narod.ru> | 2015-06-09 18:05:49 +0000 |
---|---|---|
committer | MikalaiR <nikolay.romanovich@narod.ru> | 2015-06-09 18:05:49 +0000 |
commit | f2bc6761680a9f7fca23eb68331570b734aa682f (patch) | |
tree | f2b582a6e2c364232b713fe9db754d977b15b342 /plugins/MessageState/src/main.cpp | |
parent | 08572c6065ebb0f3d0fb05c5abd291b083883a54 (diff) |
MessageState: Cleanup.
git-svn-id: http://svn.miranda-ng.org/main/trunk@14083 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MessageState/src/main.cpp')
-rw-r--r-- | plugins/MessageState/src/main.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/plugins/MessageState/src/main.cpp b/plugins/MessageState/src/main.cpp index 6b6321a29f..b2caea0d74 100644 --- a/plugins/MessageState/src/main.cpp +++ b/plugins/MessageState/src/main.cpp @@ -2,6 +2,7 @@ int hLangpack;
HINSTANCE g_hInst;
+HANDLE hDummyService;
PLUGININFOEX pluginInfo =
{
@@ -34,11 +35,16 @@ extern "C" int __declspec(dllexport) Load(void) {
mir_getLP(&pluginInfo);
HookEvent(ME_SYSTEM_MODULESLOADED, OnModulesLoaded);
+
+ hDummyService = CreateServiceFunction(MODULENAME "/DummyService", DummyService);
+
return 0;
}
extern "C" int __declspec(dllexport) Unload(void)
{
- UnInitModule();
+ if (hDummyService)
+ DestroyServiceFunction(hDummyService);
+
return 0;
}
\ No newline at end of file |