summaryrefslogtreecommitdiff
path: root/plugins/Db3x_mmap
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-02-04 15:08:14 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-02-04 15:08:14 +0300
commit45780b4afd9ad66026630e5aefc605e9a2d09f52 (patch)
tree7bf495478f3c3a571efb8809c7b173496441581f /plugins/Db3x_mmap
parent550c4eb5796d107b61efe9c9b2f30d68c873470a (diff)
fixes #1134 (Dbx mmap: wrong maxContactId on profile loading with very first contact )
Diffstat (limited to 'plugins/Db3x_mmap')
-rw-r--r--plugins/Db3x_mmap/src/dbcontacts.cpp2
1 files changed, 1 insertions, 1 deletions
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++;