diff options
author | George Hazan <george.hazan@gmail.com> | 2014-07-07 11:42:11 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-07-07 11:42:11 +0000 |
commit | bf7e27ebc315e2663f6f271e9e631c724ad64082 (patch) | |
tree | fd844d5a7f387ce0e3ffe72c1ef433ae9b5852c0 /plugins/Db3x_mmap/src/dbcontacts.cpp | |
parent | 8eb19c99761b7677c2eddb01a4dc9f88c346adf9 (diff) |
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
Diffstat (limited to 'plugins/Db3x_mmap/src/dbcontacts.cpp')
-rw-r--r-- | plugins/Db3x_mmap/src/dbcontacts.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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++;
|