summaryrefslogtreecommitdiff
path: root/plugins/Db3x_mmap/src/dbintfm.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Db3x_mmap/src/dbintfm.cpp')
-rw-r--r--plugins/Db3x_mmap/src/dbintfm.cpp67
1 files changed, 0 insertions, 67 deletions
diff --git a/plugins/Db3x_mmap/src/dbintfm.cpp b/plugins/Db3x_mmap/src/dbintfm.cpp
deleted file mode 100644
index 0af9c6d79a..0000000000
--- a/plugins/Db3x_mmap/src/dbintfm.cpp
+++ /dev/null
@@ -1,67 +0,0 @@
-/*
-
-Miranda NG: the free IM client for Microsoft* Windows*
-
-Copyright 2012-14 Miranda NG project,
-all portions of this codebase are copyrighted to the people
-listed in contributors.txt.
-
-This program is free software; you can redistribute it and/or
-modify it under the terms of the GNU General Public License
-as published by the Free Software Foundation; either version 2
-of the License, or (at your option) any later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with this program; if not, write to the Free Software
-Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-*/
-
-#include "commonheaders.h"
-
-CDb3Mmap::CDb3Mmap(const TCHAR* tszFileName) :
- CDb3Base(tszFileName)
-{
- SYSTEM_INFO sinf;
- GetSystemInfo(&sinf);
- m_ChunkSize = sinf.dwAllocationGranularity;
-}
-
-CDb3Mmap::~CDb3Mmap()
-{
- free(m_pNull);
-}
-
-int CDb3Mmap::Load(bool bSkipInit)
-{
- int res = CDb3Base::Load(bSkipInit);
- if (res)
- return res;
-
- if (!memcmp(&m_dbHeader.signature, &dbSignatureSA, sizeof(m_dbHeader.signature)))
- memcpy(&m_dbHeader.signature, &dbSignatureIM, sizeof(m_dbHeader.signature));
-
- if (!bSkipInit)
- if (InitCrypt())
- return EGROKPRF_CANTREAD;
-
- return ERROR_SUCCESS;
-}
-
-int CDb3Mmap::PrepareCheck()
-{
- int ret = CheckDbHeaders();
- if (ret != ERROR_SUCCESS)
- return ret;
-
- InitCache();
- InitModuleNames();
- if ((ret = InitCrypt()) != ERROR_SUCCESS)
- return ret;
-
- return ERROR_SUCCESS;
-}