From 6de39a47bb4ce079ce165f89229142fce391517c Mon Sep 17 00:00:00 2001 From: MikalaiR Date: Thu, 17 Mar 2016 14:14:34 +0000 Subject: ops git-svn-id: http://svn.miranda-ng.org/main/trunk@16490 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Dbx_mdb/src/dbintf.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3