summaryrefslogtreecommitdiff
path: root/plugins/Dbx_mdb/src/dbcontacts.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-03-10 16:26:57 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-03-10 16:26:57 +0000
commitcd72e104e05f62a62f034cebf10c2b171bece2c8 (patch)
tree66c7269e96d5f3f4d7dc4ff6c0307891deaa4a79 /plugins/Dbx_mdb/src/dbcontacts.cpp
parent3739d103d4369a36749f5ef4884bf470f8ccf26e (diff)
fix for correct transaction processing
git-svn-id: http://svn.miranda-ng.org/main/trunk@12375 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Dbx_mdb/src/dbcontacts.cpp')
-rw-r--r--plugins/Dbx_mdb/src/dbcontacts.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/Dbx_mdb/src/dbcontacts.cpp b/plugins/Dbx_mdb/src/dbcontacts.cpp
index 094cb0331e..6a3c4dca44 100644
--- a/plugins/Dbx_mdb/src/dbcontacts.cpp
+++ b/plugins/Dbx_mdb/src/dbcontacts.cpp
@@ -100,7 +100,7 @@ STDMETHODIMP_(LONG) CDbxMdb::DeleteContact(MCONTACT contactID)
for (;; Remap()) {
txn_ptr trnlck(m_pMdbEnv);
- mdb_del(trnlck, m_dbContacts, &key, NULL);
+ MDB_CHECK(mdb_del(trnlck, m_dbContacts, &key, NULL), 0);
if (trnlck.commit())
break;
}
@@ -122,7 +122,7 @@ STDMETHODIMP_(MCONTACT) CDbxMdb::AddContact()
for (;; Remap()) {
txn_ptr trnlck(m_pMdbEnv);
- mdb_put(trnlck, m_dbContacts, &key, &data, 0);
+ MDB_CHECK(mdb_put(trnlck, m_dbContacts, &key, &data, 0), 0);
if (trnlck.commit())
break;
}