From 4175d475a610d2ed581116a960a77df4efe6890d Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Sat, 30 May 2015 19:52:45 +0000 Subject: Dropbox: - fixed contact creation after auth - more correct way to release response object - version bumb git-svn-id: http://svn.miranda-ng.org/main/trunk@13910 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Dropbox/src/dropbox_services.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'plugins/Dropbox/src/dropbox_services.cpp') diff --git a/plugins/Dropbox/src/dropbox_services.cpp b/plugins/Dropbox/src/dropbox_services.cpp index 77baf2f5cc..f72ba6de39 100644 --- a/plugins/Dropbox/src/dropbox_services.cpp +++ b/plugins/Dropbox/src/dropbox_services.cpp @@ -151,14 +151,14 @@ INT_PTR CDropbox::ProtoSendMessage(WPARAM, LPARAM lParam) char *szMessage = (char*)pccsd->lParam; - DBEVENTINFO dbei = { sizeof(dbei) }; + /*DBEVENTINFO dbei = { sizeof(dbei) }; dbei.szModule = MODULE; dbei.timestamp = time(NULL); dbei.eventType = EVENTTYPE_MESSAGE; dbei.cbBlob = (int)mir_strlen(szMessage); dbei.pBlob = (PBYTE)szMessage; dbei.flags = DBEF_SENT | DBEF_READ | DBEF_UTF; - db_event_add(pccsd->hContact, &dbei); + db_event_add(pccsd->hContact, &dbei);*/ if (*szMessage == '/') { @@ -211,11 +211,12 @@ INT_PTR CDropbox::ProtoReceiveMessage(WPARAM, LPARAM lParam) char *message = (char*)pccsd->lParam; DBEVENTINFO dbei = { sizeof(dbei) }; + dbei.flags = DBEF_UTF; dbei.szModule = MODULE; dbei.timestamp = time(NULL); dbei.eventType = EVENTTYPE_MESSAGE; dbei.cbBlob = (int)mir_strlen(message); - dbei.pBlob = (PBYTE)message; + dbei.pBlob = (PBYTE)mir_strdup(message); db_event_add(pccsd->hContact, &dbei); return 0; -- cgit v1.2.3