summaryrefslogtreecommitdiff
path: root/plugins/MessageState/src/main.cpp
diff options
context:
space:
mode:
authorMikalaiR <nikolay.romanovich@narod.ru>2015-06-09 18:05:49 +0000
committerMikalaiR <nikolay.romanovich@narod.ru>2015-06-09 18:05:49 +0000
commitf2bc6761680a9f7fca23eb68331570b734aa682f (patch)
treef2b582a6e2c364232b713fe9db754d977b15b342 /plugins/MessageState/src/main.cpp
parent08572c6065ebb0f3d0fb05c5abd291b083883a54 (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.cpp8
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