summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)