From 93f16e67f028d5f7473a49a6be62ca3b5072cf0d Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 6 Jul 2014 09:02:04 +0000 Subject: fixes bug #717 (If database totally encrypted dbchecker asks password 2 times) git-svn-id: http://svn.miranda-ng.org/main/trunk@9704 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/DbChecker/src/selectdb.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'plugins/DbChecker') diff --git a/plugins/DbChecker/src/selectdb.cpp b/plugins/DbChecker/src/selectdb.cpp index 4eef937cb0..488eaee5ec 100644 --- a/plugins/DbChecker/src/selectdb.cpp +++ b/plugins/DbChecker/src/selectdb.cpp @@ -24,13 +24,7 @@ static bool CheckBroken(const TCHAR *ptszFullPath) if (dblink == NULL || dblink->CheckDB == NULL) return true; - int error = 0; - MIDatabaseChecker *dbChecker = dblink->CheckDB(ptszFullPath, &error); - if (dbChecker == NULL) - return true; - - dbChecker->Destroy(); - return false; + return dblink->grokHeader(ptszFullPath) == EGROKPRF_NOERROR; } void OpenDatabase(HWND hdlg, INT iNextPage) -- cgit v1.2.3