From bf7e27ebc315e2663f6f271e9e631c724ad64082 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 7 Jul 2014 11:42:11 +0000 Subject: fix for the wrong max contact id calculation in dbx_mmap git-svn-id: http://svn.miranda-ng.org/main/trunk@9721 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Db3x_mmap/src/dbcontacts.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins') diff --git a/plugins/Db3x_mmap/src/dbcontacts.cpp b/plugins/Db3x_mmap/src/dbcontacts.cpp index 539f812744..31261c1d98 100644 --- a/plugins/Db3x_mmap/src/dbcontacts.cpp +++ b/plugins/Db3x_mmap/src/dbcontacts.cpp @@ -419,7 +419,7 @@ void CDb3Mmap::FillContacts() DWORD dwContactID; if (m_dbHeader.version >= DB_095_VERSION) { dwContactID = p->dwContactID; - if (dwContactID > m_dwMaxContactId) + if (dwContactID >= m_dwMaxContactId) m_dwMaxContactId = dwContactID + 1; } else dwContactID = m_dwMaxContactId++; -- cgit v1.2.3