diff options
author | George Hazan <george.hazan@gmail.com> | 2015-08-11 17:54:58 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-08-11 17:54:58 +0000 |
commit | a4d548ce78c5d9405c94d4ed33ab07c0750f9ae3 (patch) | |
tree | 220f32e13a3edc68a770858f93c9135240a41a5a /plugins/Db3x_mmap | |
parent | 70a6a0e2e744b142f2cfde25c8add33c1f95dc29 (diff) |
fix for the ME_DB_EVENT_FILTER_ADD processing
git-svn-id: http://svn.miranda-ng.org/main/trunk@14915 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Db3x_mmap')
-rw-r--r-- | plugins/Db3x_mmap/src/dbevents.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/plugins/Db3x_mmap/src/dbevents.cpp b/plugins/Db3x_mmap/src/dbevents.cpp index 36d1b7624d..c42a0962ab 100644 --- a/plugins/Db3x_mmap/src/dbevents.cpp +++ b/plugins/Db3x_mmap/src/dbevents.cpp @@ -35,15 +35,6 @@ STDMETHODIMP_(MEVENT) CDb3Mmap::AddEvent(MCONTACT contactID, DBEVENTINFO *dbei) if (dbei == NULL || dbei->cbSize != sizeof(DBEVENTINFO)) return 0;
if (dbei->timestamp == 0) return 0;
- DBEvent dbe;
- dbe.signature = DBEVENT_SIGNATURE;
- dbe.contactID = contactID; // store native or subcontact's id
- dbe.timestamp = dbei->timestamp;
- dbe.flags = dbei->flags;
- dbe.wEventType = dbei->eventType;
- dbe.cbBlob = dbei->cbBlob;
- BYTE *pBlob = dbei->pBlob;
-
MCONTACT contactNotifyID = contactID;
DBCachedContact *ccSub = NULL;
if (contactID != 0) {
@@ -65,6 +56,15 @@ STDMETHODIMP_(MEVENT) CDb3Mmap::AddEvent(MCONTACT contactID, DBEVENTINFO *dbei) if (NotifyEventHooks(hEventFilterAddedEvent, contactNotifyID, (LPARAM)dbei))
return NULL;
+ DBEvent dbe;
+ dbe.signature = DBEVENT_SIGNATURE;
+ dbe.contactID = contactID; // store native or subcontact's id
+ dbe.timestamp = dbei->timestamp;
+ dbe.flags = dbei->flags;
+ dbe.wEventType = dbei->eventType;
+ dbe.cbBlob = dbei->cbBlob;
+ BYTE *pBlob = dbei->pBlob;
+
mir_ptr<BYTE> pCryptBlob;
if (m_bEncrypted) {
size_t len;
|