diff options
Diffstat (limited to 'plugins/Dbx_mdb/src/dbintf.cpp')
-rw-r--r-- | plugins/Dbx_mdb/src/dbintf.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/Dbx_mdb/src/dbintf.cpp b/plugins/Dbx_mdb/src/dbintf.cpp index acf6645b5b..36f0ef6037 100644 --- a/plugins/Dbx_mdb/src/dbintf.cpp +++ b/plugins/Dbx_mdb/src/dbintf.cpp @@ -134,7 +134,7 @@ int CDbxMdb::Load(bool bSkipInit) mdb_cursor_open(m_txn, m_dbModules, &m_curModules);
mdb_cursor_open(m_txn, m_dbContacts, &m_curContacts);
- if (mdb_cursor_get(m_curContacts, &key, &val, MDB_LAST))
+ if (mdb_cursor_get(m_curContacts, &key, &val, MDB_LAST) == MDB_SUCCESS)
m_dwMaxContactId = *(DWORD*)key.mv_data + 1;
mdb_txn_reset(m_txn);
|