From 77e8bf976c6abb04539913b61a1dbf45269a1d10 Mon Sep 17 00:00:00 2001 From: Vadim Dashevskiy Date: Mon, 12 Nov 2012 08:47:41 +0000 Subject: fix for DbChecker - not to load when not in use git-svn-id: http://svn.miranda-ng.org/main/trunk@2298 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/modules/database/database.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/modules/database/database.cpp') diff --git a/src/modules/database/database.cpp b/src/modules/database/database.cpp index dc55487878..a1c4514092 100644 --- a/src/modules/database/database.cpp +++ b/src/modules/database/database.cpp @@ -28,6 +28,7 @@ extern TCHAR mirandabootini[MAX_PATH]; bool dbCreated; TCHAR g_profileDir[MAX_PATH], g_profileName[MAX_PATH]; TCHAR* g_defaultProfile; +void EnsureCheckerLoaded(bool); bool fileExist(TCHAR* fname) { @@ -487,6 +488,8 @@ int LoadDatabaseModule(void) if ( !getProfile(szProfile, SIZEOF(szProfile))) return 1; + EnsureCheckerLoaded(false); // unload dbchecker + if ( arDbPlugins.getCount() == 0) { TCHAR buf[256]; TCHAR* p = _tcsrchr(szProfile, '\\'); -- cgit v1.2.3