diff options
author | George Hazan <george.hazan@gmail.com> | 2014-01-26 15:22:35 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-01-26 15:22:35 +0000 |
commit | d0580040b51b6c4803e0f61863bd985c382370e9 (patch) | |
tree | fb9816ee0b889ec88694fbca29d7b2056320a3dc /plugins/Db3x_mmap/src/dbintf.cpp | |
parent | 1fb07e640abb626418980d241148b3fcba90998d (diff) |
fix for creating backup files in dbchecker
git-svn-id: http://svn.miranda-ng.org/main/trunk@7906 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Db3x_mmap/src/dbintf.cpp')
-rw-r--r-- | plugins/Db3x_mmap/src/dbintf.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/plugins/Db3x_mmap/src/dbintf.cpp b/plugins/Db3x_mmap/src/dbintf.cpp index 549f32d357..a3fbb8a62e 100644 --- a/plugins/Db3x_mmap/src/dbintf.cpp +++ b/plugins/Db3x_mmap/src/dbintf.cpp @@ -190,6 +190,20 @@ static CheckWorker Workers[6] = &CDb3Base::WorkFinalTasks
};
+int CDb3Mmap::PrepareCheck()
+{
+ int ret = CheckDbHeaders();
+ if (ret != ERROR_SUCCESS)
+ return ret;
+
+ InitCache();
+ InitModuleNames();
+ if ((ret = InitCrypt()) != ERROR_SUCCESS)
+ return ret;
+
+ return ERROR_SUCCESS;
+}
+
int CDb3Base::Start(DBCHeckCallback *callback)
{
cb = callback;
|