From 88ec2ae53ddc811d08763b2fb3a0073b571a321c Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 4 Jul 2012 12:37:38 +0000 Subject: these fixes aren't needed anymore git-svn-id: http://svn.miranda-ng.org/main/trunk@755 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Db3x/dbsettings.cpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'plugins/Db3x') diff --git a/plugins/Db3x/dbsettings.cpp b/plugins/Db3x/dbsettings.cpp index c8eb18c208..209b7a13ab 100644 --- a/plugins/Db3x/dbsettings.cpp +++ b/plugins/Db3x/dbsettings.cpp @@ -941,13 +941,6 @@ static int stringCompare2( DBCachedGlobalValue* p1, DBCachedGlobalValue* p2 ) return strcmp( p1->name, p2->name ); } -static int OnPreShutdown(WPARAM, LPARAM) -{ - DestroyHookableEvent(hSettingChangeEvent); - hSettingChangeEvent = 0; - return 0; -} - int InitSettings(void) { CreateServiceFunction(MS_DB_CONTACT_GETSETTING,GetContactSetting); @@ -958,9 +951,8 @@ int InitSettings(void) CreateServiceFunction(MS_DB_CONTACT_DELETESETTING,DeleteContactSetting); CreateServiceFunction(MS_DB_CONTACT_ENUMSETTINGS,EnumContactSettings); CreateServiceFunction(MS_DB_SETSETTINGRESIDENT,SetSettingResident); - + hSettingChangeEvent = CreateHookableEvent(ME_DB_CONTACT_SETTINGCHANGED); - HookEvent(ME_SYSTEM_PRESHUTDOWN, OnPreShutdown); mirCp = CallService( MS_LANGPACK_GETCODEPAGE, 0, 0 ); -- cgit v1.2.3