From 8db272850a6e89689424eb3058e833511ee64232 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 30 Jul 2012 07:16:51 +0000 Subject: service plugin's launcher in Profile Manager always launches DbChecker git-svn-id: http://svn.miranda-ng.org/main/trunk@1270 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/DbChecker/src/main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'plugins/DbChecker/src') diff --git a/plugins/DbChecker/src/main.cpp b/plugins/DbChecker/src/main.cpp index a36f74f340..dcf8a59075 100644 --- a/plugins/DbChecker/src/main.cpp +++ b/plugins/DbChecker/src/main.cpp @@ -23,6 +23,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. HINSTANCE hInst; int hLangpack = 0; bool bServiceMode, bLaunchMiranda, bShortMode; +HANDLE hService; DbToolOptions opts = {0}; @@ -81,11 +82,12 @@ extern "C" __declspec(dllexport) int Load(void) mir_getLP(&pluginInfoEx); CreateServiceFunction(MS_DB_CHECKPROFILE, CheckProfile); - CreateServiceFunction(MS_SERVICEMODE_LAUNCH, ServiceMode); + hService = CreateServiceFunction(MS_SERVICEMODE_LAUNCH, ServiceMode); return 0; } extern "C" __declspec(dllexport) int Unload(void) { + DestroyServiceFunction(hService); return 0; } -- cgit v1.2.3