diff options
author | George Hazan <ghazan@miranda.im> | 2018-04-02 20:50:08 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-04-02 20:50:08 +0300 |
commit | 5de1d3b7666b26291eaddcfa99354f0662a3bec2 (patch) | |
tree | 95e3246859e96c86898fa17f955c7d5613b270cb | |
parent | 8d3083580d13ca1dbbff00485ccfb102b425e7ce (diff) |
Dbx_mdbx: fix for record number calculation
-rw-r--r-- | plugins/Dbx_mdbx/src/dbcontacts.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/Dbx_mdbx/src/dbcontacts.cpp b/plugins/Dbx_mdbx/src/dbcontacts.cpp index f59e57c4b3..320b479984 100644 --- a/plugins/Dbx_mdbx/src/dbcontacts.cpp +++ b/plugins/Dbx_mdbx/src/dbcontacts.cpp @@ -26,7 +26,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. STDMETHODIMP_(LONG) CDbxMDBX::GetContactCount(void)
{
MDBX_stat st;
- mdbx_dbi_stat(m_txn_ro, m_dbContacts, &st, sizeof(st));
+ txn_ptr_ro trnlck(m_txn_ro);
+ mdbx_dbi_stat(trnlck, m_dbContacts, &st, sizeof(st));
return st.ms_entries;
}
|