diff options
author | George Hazan <george.hazan@gmail.com> | 2013-11-21 13:25:26 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-11-21 13:25:26 +0000 |
commit | b3003cc96456a60832e0a90b7ed6b847ea8b833b (patch) | |
tree | c0d06d2a1f1ff917cb78d77894eadf3df5041228 /plugins/Db3x_mmap/src/dbcache.cpp | |
parent | 771a25d5bb880bb235a1ba188dc0fd8782a4a2f6 (diff) |
more correct form of dividing mmap & mmap_sa
git-svn-id: http://svn.miranda-ng.org/main/trunk@6953 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Db3x_mmap/src/dbcache.cpp')
-rw-r--r-- | plugins/Db3x_mmap/src/dbcache.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/plugins/Db3x_mmap/src/dbcache.cpp b/plugins/Db3x_mmap/src/dbcache.cpp index 8862c7192f..8fb1910caf 100644 --- a/plugins/Db3x_mmap/src/dbcache.cpp +++ b/plugins/Db3x_mmap/src/dbcache.cpp @@ -23,6 +23,18 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include "commonheaders.h"
+int CDb3Mmap::Load(bool bSkipInit)
+{
+ int res = CDb3Base::Load(bSkipInit);
+ if (res != ERROR_SUCCESS)
+ return res;
+
+ if (!bSkipInit)
+ return InitCrypt();
+
+ return 0;
+}
+
void CDb3Mmap::Map()
{
m_hMap = CreateFileMapping(m_hDbFile, NULL, PAGE_READWRITE, 0, m_dwFileSize, NULL);
|