diff options
author | George Hazan <george.hazan@gmail.com> | 2014-01-23 15:10:09 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-01-23 15:10:09 +0000 |
commit | c0dc4dcad95f8d8e95986c61514544b52387408a (patch) | |
tree | 6646cc5d571b34cd9731178de1461f2e147fd253 /plugins/Db3x_mmap/src/dbtool/initialchecks.cpp | |
parent | 9fc5ea1dd35c7115d34f9a1372ab4d2e6d966002 (diff) |
dbx_mmap to verify password before checking file
git-svn-id: http://svn.miranda-ng.org/main/trunk@7835 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Db3x_mmap/src/dbtool/initialchecks.cpp')
-rw-r--r-- | plugins/Db3x_mmap/src/dbtool/initialchecks.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/plugins/Db3x_mmap/src/dbtool/initialchecks.cpp b/plugins/Db3x_mmap/src/dbtool/initialchecks.cpp index 2d9dfae04c..4501162263 100644 --- a/plugins/Db3x_mmap/src/dbtool/initialchecks.cpp +++ b/plugins/Db3x_mmap/src/dbtool/initialchecks.cpp @@ -48,14 +48,6 @@ int CDb3Base::WorkInitialChecks(int firstTime) if (res)
return res;
- m_hMap = CreateFileMapping(m_hDbFile, NULL, cb->bAggressive ? PAGE_WRITECOPY : PAGE_READONLY, 0, 0, NULL);
- if (m_hMap)
- m_pDbCache = (BYTE*)MapViewOfFile(m_hMap, cb->bAggressive ? FILE_MAP_COPY : FILE_MAP_READ, 0, 0, 0);
- else {
- cb->pfnAddLogMessage(STATUS_FATAL, TranslateT("Can't create file mapping (%u)"), GetLastError());
- return ERROR_ACCESS_DENIED;
- }
-
if (!m_pDbCache) {
cb->pfnAddLogMessage(STATUS_FATAL, TranslateT("Can't create map view of file (%u)"), GetLastError());
return ERROR_ACCESS_DENIED;
|