From 29cfeadbeb5821884731dc4645cbd497cfd283e6 Mon Sep 17 00:00:00 2001 From: MikalaiR Date: Tue, 5 Jul 2016 18:23:20 +0000 Subject: stdmsg: fix(?) heap corruption git-svn-id: http://svn.miranda-ng.org/main/trunk@17064 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/core/stdmsg/src/cmdlist.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/core/stdmsg') diff --git a/src/core/stdmsg/src/cmdlist.cpp b/src/core/stdmsg/src/cmdlist.cpp index aba0d79f1e..1da554d739 100644 --- a/src/core/stdmsg/src/cmdlist.cpp +++ b/src/core/stdmsg/src/cmdlist.cpp @@ -103,6 +103,8 @@ void msgQueue_processack(MCONTACT hContact, int id, BOOL success, const char *sz MessageWindowEvent evt = { sizeof(evt), id, hContact, &dbei }; NotifyEventHooks(hHookWinWrite, 0, (LPARAM)&evt); + p->szMsg = (char*)dbei.pBlob; + db_event_add(hContact, &dbei); mir_free(p->szMsg); -- cgit v1.2.3