From 4917567d0e33f20b07b004c368cd66e301115db0 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Mon, 23 Sep 2013 15:13:53 +0000 Subject: small plugins cleanup git-svn-id: http://svn.miranda-ng.org/main/trunk@6193 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Dbx_tree/src/DataBase.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'plugins/Dbx_tree/src/DataBase.cpp') diff --git a/plugins/Dbx_tree/src/DataBase.cpp b/plugins/Dbx_tree/src/DataBase.cpp index 37067ff350..451ce89a00 100644 --- a/plugins/Dbx_tree/src/DataBase.cpp +++ b/plugins/Dbx_tree/src/DataBase.cpp @@ -150,10 +150,7 @@ int CDataBase::LoadFile(TDBFileType Index) TGenericFileHeader h; m_EncryptionManager[Index] = new CEncryptionManager; - if (CMappedMemory::InitMMAP()) - m_FileAccess[Index] = new CMappedMemory(m_FileName[Index]); - else - m_FileAccess[Index] = new CDirectAccess(m_FileName[Index]); + m_FileAccess[Index] = new CMappedMemory(m_FileName[Index]); m_FileAccess[Index]->Read(&h, 0, sizeof(h)); m_EncryptionManager[Index]->InitEncryption(h.Gen.FileEncryption); -- cgit v1.2.3