From f3cdb7545b85a2c849ad4acf4dfbf1aaf526de6b Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 28 Sep 2012 13:13:05 +0000 Subject: database created by dbx_mmap_sa must be opened by it git-svn-id: http://svn.miranda-ng.org/main/trunk@1714 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Dbx_mmap_SA/src/dbintf_sa.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'plugins/Dbx_mmap_SA/src/dbintf_sa.cpp') diff --git a/plugins/Dbx_mmap_SA/src/dbintf_sa.cpp b/plugins/Dbx_mmap_SA/src/dbintf_sa.cpp index f3c68881a5..b7dec7c908 100644 --- a/plugins/Dbx_mmap_SA/src/dbintf_sa.cpp +++ b/plugins/Dbx_mmap_SA/src/dbintf_sa.cpp @@ -32,6 +32,7 @@ extern CDdxMmapSA* g_Db; int InitDialogs(void); DBSignature dbSignatureSecured = {"Miranda ICQ SD",0x1A}; +DBSignature dbSignatureNonSecured = {"Miranda ICQ SA",0x1A}; CDdxMmapSA::CDdxMmapSA(const TCHAR* tszFileName) : CDb3Mmap(tszFileName) @@ -65,6 +66,8 @@ int CDdxMmapSA::CheckDbHeaders() { if ( memcmp(m_dbHeader.signature, &dbSignatureSecured, sizeof(m_dbHeader.signature)) == 0) m_bEncoding = true; + else if ( memcmp(m_dbHeader.signature, &dbSignatureNonSecured, sizeof(m_dbHeader.signature)) == 0) + m_bEncoding = false; else { m_bEncoding = false; if ( memcmp(m_dbHeader.signature,&dbSignature,sizeof(m_dbHeader.signature))) -- cgit v1.2.3