From 45780b4afd9ad66026630e5aefc605e9a2d09f52 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 4 Feb 2018 15:08:14 +0300 Subject: fixes #1134 (Dbx mmap: wrong maxContactId on profile loading with very first contact ) --- 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 f32f38e3d3..4ff87d4efe 100644 --- a/plugins/Db3x_mmap/src/dbcontacts.cpp +++ b/plugins/Db3x_mmap/src/dbcontacts.cpp @@ -351,7 +351,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