summaryrefslogtreecommitdiff
path: root/plugins/Db3x_mmap/src/dbintf.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-07-02 15:18:50 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-07-02 15:18:50 +0000
commit5174b6de32477883b4efe1235643c9faa273521b (patch)
tree629bc2ebc0cdbebac343cafd14066d8b0253a6bb /plugins/Db3x_mmap/src/dbintf.cpp
parent547af691ad60fb3935075f033343bb870dfba464 (diff)
finally wiping all obsolete stuff from 0.95
git-svn-id: http://svn.miranda-ng.org/main/trunk@9644 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Db3x_mmap/src/dbintf.cpp')
-rw-r--r--plugins/Db3x_mmap/src/dbintf.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/plugins/Db3x_mmap/src/dbintf.cpp b/plugins/Db3x_mmap/src/dbintf.cpp
index 0e2187e993..d256adefe1 100644
--- a/plugins/Db3x_mmap/src/dbintf.cpp
+++ b/plugins/Db3x_mmap/src/dbintf.cpp
@@ -27,6 +27,7 @@ DBSignature dbSignatureU = { "Miranda NG DBu", 0x1A }; // unencrypted database
DBSignature dbSignatureE = { "Miranda NG DBe", 0x1A }; // encrypted database
DBSignature dbSignatureIM = { "Miranda ICQ DB", 0x1A };
DBSignature dbSignatureSA = { "Miranda ICQ SA", 0x1A };
+DBSignature dbSignatureSD = { "Miranda ICQ SD", 0x1A };
static int ModCompare(const ModuleName *mn1, const ModuleName *mn2)
{
@@ -92,7 +93,7 @@ CDb3Mmap::~CDb3Mmap()
if (!m_bReadOnly) {
DWORD bytesWritten;
SetFilePointer(m_hDbFile, 0, NULL, FILE_BEGIN);
- WriteFile(m_hDbFile, &dbSignatureIM, 1, &bytesWritten, NULL);
+ WriteFile(m_hDbFile, &dbSignatureU, 1, &bytesWritten, NULL);
}
if (m_hDbFile != INVALID_HANDLE_VALUE)
@@ -138,9 +139,6 @@ int CDb3Mmap::Load(bool bSkipInit)
return EGROKPRF_CANTREAD;
}
- if (!memcmp(&m_dbHeader.signature, &dbSignatureSA, sizeof(m_dbHeader.signature)))
- memcpy(&m_dbHeader.signature, &dbSignatureIM, sizeof(m_dbHeader.signature));
-
if (!bSkipInit) {
if (InitMap()) return 1;
if (InitModuleNames()) return 1;