summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-12-30 11:55:47 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-12-30 11:55:47 +0000
commit4f7b7a42636590c51d0d87063d8c1ab5ca71db99 (patch)
tree9758d38c7c4af87bd0c568d7f815ffebaaa287a4 /plugins
parentb0c23cebdb142a7bfc7fc815b1c96db8a87dca65 (diff)
fix for the version check
git-svn-id: http://svn.miranda-ng.org/main/trunk@7423 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins')
-rw-r--r--plugins/Db3x_mmap/src/dbtool/initialchecks.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/Db3x_mmap/src/dbtool/initialchecks.cpp b/plugins/Db3x_mmap/src/dbtool/initialchecks.cpp
index 4f65192169..6258f59c16 100644
--- a/plugins/Db3x_mmap/src/dbtool/initialchecks.cpp
+++ b/plugins/Db3x_mmap/src/dbtool/initialchecks.cpp
@@ -26,7 +26,7 @@ int CDb3Base::WorkInitialCheckHeaders()
cb->pfnAddLogMessage(STATUS_FATAL,TranslateT("Database signature is corrupted, automatic repair is impossible"));
return ERROR_BAD_FORMAT;
}
- if (m_dbHeader.version != 0x00000700) {
+ if (m_dbHeader.version != DB_OLD_VERSION && m_dbHeader.version != DB_THIS_VERSION) {
cb->pfnAddLogMessage(STATUS_FATAL,TranslateT("Database is marked as belonging to an unknown version of Miranda"));
return ERROR_BAD_FORMAT;
}