diff options
author | MikalaiR <nikolay.romanovich@narod.ru> | 2016-03-04 16:54:42 +0000 |
---|---|---|
committer | MikalaiR <nikolay.romanovich@narod.ru> | 2016-03-04 16:54:42 +0000 |
commit | 03c5cb9df33ae92ac85e045fd9c7c5b9adf294b3 (patch) | |
tree | 37be2523b93ab4f8df803861879ff0e6a36bad9a | |
parent | c710818c396b0726e76fe0bbd0af75a9d3fac585 (diff) |
dbx_lmdb: oops
git-svn-id: http://svn.miranda-ng.org/main/trunk@16419 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r-- | plugins/Dbx_mdb/src/dbcontacts.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/Dbx_mdb/src/dbcontacts.cpp b/plugins/Dbx_mdb/src/dbcontacts.cpp index 14f42e9d70..e6789abeb4 100644 --- a/plugins/Dbx_mdb/src/dbcontacts.cpp +++ b/plugins/Dbx_mdb/src/dbcontacts.cpp @@ -95,8 +95,6 @@ STDMETHODIMP_(LONG) CDbxMdb::DeleteContact(MCONTACT contactID) NotifyEventHooks(hContactDeletedEvent, contactID, 0);
mir_cslockfull lck(m_csDbAccess);
-
- MDB_val key = { sizeof(MCONTACT), &contactID }, data;
{
LIST<EventItem> events(50);
@@ -109,6 +107,7 @@ STDMETHODIMP_(LONG) CDbxMdb::DeleteContact(MCONTACT contactID) }
}
{
+ MDB_val key, data;
DBSettingKey keyS = { contactID, 0 };
memset(keyS.szSettingName, 0, sizeof(keyS.szSettingName));
@@ -130,6 +129,7 @@ STDMETHODIMP_(LONG) CDbxMdb::DeleteContact(MCONTACT contactID) txn.commit();
}
+ MDB_val key = { sizeof(MCONTACT), &contactID };
for (;; Remap())
{
txn_ptr trnlck(m_pMdbEnv);
|