summaryrefslogtreecommitdiff
path: root/plugins/Scriver/src/globals.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-04-20 17:06:15 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-04-20 17:06:15 +0000
commit04fb63c99e3a3da65613fa7a7eb2b8bfad1c582b (patch)
treee711ef51b2bea0ae2a62ceae974a7708cc432434 /plugins/Scriver/src/globals.cpp
parent1e04ea836d421343cafdc605f9cfe0cf79ef24f1 (diff)
oops... ME_MSG_WRITEEVENT is ME_MSG_PRECREATEEVENT now :)
git-svn-id: http://svn.miranda-ng.org/main/trunk@4487 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Scriver/src/globals.cpp')
-rw-r--r--plugins/Scriver/src/globals.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/Scriver/src/globals.cpp b/plugins/Scriver/src/globals.cpp
index c69337ff02..d9486bba85 100644
--- a/plugins/Scriver/src/globals.cpp
+++ b/plugins/Scriver/src/globals.cpp
@@ -453,11 +453,12 @@ static int ackevent(WPARAM wParam, LPARAM lParam)
if ( !( item->flags & PREF_UTF ))
dbei.cbBlob *= sizeof(TCHAR) + 1;
dbei.pBlob = (PBYTE) item->sendBuffer;
- HANDLE hNewEvent = db_event_add(item->hContact, &dbei);
- MessageWindowEvent evt = { sizeof(evt), (int)item->hSendId, item->hContact, hNewEvent };
+ MessageWindowEvent evt = { sizeof(evt), (int)item->hSendId, item->hContact, &dbei };
NotifyEventHooks(hHookWinWrite, 0, (LPARAM)&evt);
+ db_event_add(item->hContact, &dbei);
+
if (item->hwndErrorDlg != NULL)
DestroyWindow(item->hwndErrorDlg);