From 823800856ab18c23357e108bb9d923cee497ea03 Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Wed, 12 Oct 2011 17:12:04 +0300 Subject: modified: messages.cpp modified: new_gpg.vcxproj modified: utilities.cpp --- messages.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'messages.cpp') diff --git a/messages.cpp b/messages.cpp index 2d48052..44172df 100755 --- a/messages.cpp +++ b/messages.cpp @@ -23,6 +23,8 @@ boost::mutex new_key_hcnt_mutex; bool _terminate = false; int returnNoError(HANDLE hContact); +std::list sent_msgs; + int RecvMsgSvc_func(HANDLE hContact, std::wstring str, char *msg, DWORD flags, DWORD timestamp) { DWORD dbflags = DBEF_UTF; @@ -608,7 +610,9 @@ int SendMsgSvc_func(HANDLE hContact, char *msg, DWORD flags) HistoryLog(hContact, db_event("Failed to encrypt message with GPG", 0,0, DBEF_SENT)); hcontact_data[hContact].msgs_to_pass.push_back("Failed to encrypt message with GPG"); mir_free(msg); - return CallContactService(hContact, PSS_MESSAGE, (WPARAM)flags, (LPARAM)msg); + HANDLE h = (HANDLE)CallContactService(hContact, PSS_MESSAGE, (WPARAM)flags, (LPARAM)msg); + sent_msgs.push_back(h); + return (int)h; } if(!bJabberAPI || !bIsMiranda09) //force jabber to handle encrypted message by itself cmd += _T("--comment \"\" --no-version "); -- cgit v1.2.3