From 03c5cb9df33ae92ac85e045fd9c7c5b9adf294b3 Mon Sep 17 00:00:00 2001 From: MikalaiR Date: Fri, 4 Mar 2016 16:54:42 +0000 Subject: dbx_lmdb: oops git-svn-id: http://svn.miranda-ng.org/main/trunk@16419 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Dbx_mdb/src/dbcontacts.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/Dbx_mdb/src') 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 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); -- cgit v1.2.3