summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMikalaiR <nikolay.romanovich@narod.ru>2016-07-05 18:23:20 +0000
committerMikalaiR <nikolay.romanovich@narod.ru>2016-07-05 18:23:20 +0000
commit29cfeadbeb5821884731dc4645cbd497cfd283e6 (patch)
treecadbc7cd21741fab57bed8b826bcc0433998d31e /src
parent3549466bfab1c6fdb20d8eb55fe0124f2c6704a7 (diff)
stdmsg: fix(?) heap corruption
git-svn-id: http://svn.miranda-ng.org/main/trunk@17064 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src')
-rw-r--r--src/core/stdmsg/src/cmdlist.cpp2
1 files changed, 2 insertions, 0 deletions
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);