From 04fb63c99e3a3da65613fa7a7eb2b8bfad1c582b Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 20 Apr 2013 17:06:15 +0000 Subject: 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 --- plugins/TabSRMM/src/sendqueue.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'plugins/TabSRMM/src/sendqueue.cpp') diff --git a/plugins/TabSRMM/src/sendqueue.cpp b/plugins/TabSRMM/src/sendqueue.cpp index 62b31a6a57..b6041a8685 100644 --- a/plugins/TabSRMM/src/sendqueue.cpp +++ b/plugins/TabSRMM/src/sendqueue.cpp @@ -761,11 +761,12 @@ inform_and_discard: if (m_jobs[iFound].dwFlags & PREF_UTF) dbei.flags |= DBEF_UTF; dbei.pBlob = (PBYTE) m_jobs[iFound].sendBuffer; - hNewEvent = db_event_add(m_jobs[iFound].hOwner, &dbei); - MessageWindowEvent evt = { sizeof(evt), (int)m_jobs[iFound].hSendId, m_jobs[iFound].hOwner, hNewEvent }; + MessageWindowEvent evt = { sizeof(evt), (int)m_jobs[iFound].hSendId, m_jobs[iFound].hOwner, &dbei }; NotifyEventHooks(PluginConfig.m_event_WriteEvent, 0, (LPARAM)&evt); + hNewEvent = db_event_add(m_jobs[iFound].hOwner, &dbei); + if (m_pContainer) if (!nen_options.iNoSounds && !(m_pContainer->dwFlags & CNT_NOSOUND)) SkinPlaySound("SendMsg"); -- cgit v1.2.3