summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-07-06 09:02:04 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-07-06 09:02:04 +0000
commit93f16e67f028d5f7473a49a6be62ca3b5072cf0d (patch)
tree9c9c1e71a9bdbdb9ebbd8a86a789abd809561eb8
parent9aa3844e3689448362be00d18cedca9273801290 (diff)
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
-rw-r--r--plugins/DbChecker/src/selectdb.cpp8
1 files changed, 1 insertions, 7 deletions
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)