From 78d543e00b33bffc196d07622db74e64d5feed7e Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 10 Jul 2014 21:59:08 +0000 Subject: fix for converting metas from some early builds of 0.95 git-svn-id: http://svn.miranda-ng.org/main/trunk@9766 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Db3x_mmap/src/dbevents.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'plugins/Db3x_mmap') diff --git a/plugins/Db3x_mmap/src/dbevents.cpp b/plugins/Db3x_mmap/src/dbevents.cpp index 2a50bcf0f8..5bbb4853cb 100644 --- a/plugins/Db3x_mmap/src/dbevents.cpp +++ b/plugins/Db3x_mmap/src/dbevents.cpp @@ -573,6 +573,10 @@ void CDb3Mmap::ConvertEvents() DBContact dbc = *(DBContact*)DBRead(dwOffset, sizeof(DBContact), NULL); ConvertContactEvents(&dbc); DBWrite(dwOffset, &dbc, sizeof(dbc)); + + if (m_contactsMap.find((ConvertedContact*)&dbc.dwContactID) == NULL) + m_contactsMap.insert(new ConvertedContact(dwOffset, dbc.dwContactID)); + dwOffset = dbc.ofsNext; } -- cgit v1.2.3