summaryrefslogtreecommitdiff
path: root/plugins/Db3x_mmap/src/dbintf.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-01-26 15:43:57 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-01-26 15:43:57 +0000
commit232b5ed16b5c0eb5a26fe530eed45f01e909129a (patch)
tree141d0779d734d2ea2828e24df69d5f18443184fa /plugins/Db3x_mmap/src/dbintf.cpp
parentd0580040b51b6c4803e0f61863bd985c382370e9 (diff)
more accurate control of mmap modes/access
git-svn-id: http://svn.miranda-ng.org/main/trunk@7907 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Db3x_mmap/src/dbintf.cpp')
-rw-r--r--plugins/Db3x_mmap/src/dbintf.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/plugins/Db3x_mmap/src/dbintf.cpp b/plugins/Db3x_mmap/src/dbintf.cpp
index a3fbb8a62e..a6b579fc0d 100644
--- a/plugins/Db3x_mmap/src/dbintf.cpp
+++ b/plugins/Db3x_mmap/src/dbintf.cpp
@@ -122,11 +122,11 @@ int CDb3Base::Load(bool bSkipInit)
}
if (!bSkipInit) {
- if (InitCache()) return 1;
- if (InitModuleNames()) return 1;
-
m_bReadOnly = false;
+ if (InitCache()) return 1;
+ if (InitModuleNames()) return 1;
+
// we don't need events in the service mode
if (ServiceExists(MS_DB_SETSAFETYMODE)) {
hContactDeletedEvent = CreateHookableEvent(ME_DB_CONTACT_DELETED);
@@ -207,6 +207,7 @@ int CDb3Mmap::PrepareCheck()
int CDb3Base::Start(DBCHeckCallback *callback)
{
cb = callback;
+ ReMap(0);
return ERROR_SUCCESS;
}