summaryrefslogtreecommitdiff
path: root/plugins/Dropbox/src/dropbox_services.cpp
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2015-05-30 19:52:45 +0000
committerAlexander Lantsev <aunsane@gmail.com>2015-05-30 19:52:45 +0000
commit4175d475a610d2ed581116a960a77df4efe6890d (patch)
tree5a047e53ad47893793f40170c5b447f4724bf94a /plugins/Dropbox/src/dropbox_services.cpp
parent6c764151d2fbb2b6ecfdd68bcd48b86e36a773df (diff)
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
Diffstat (limited to 'plugins/Dropbox/src/dropbox_services.cpp')
-rw-r--r--plugins/Dropbox/src/dropbox_services.cpp7
1 files changed, 4 insertions, 3 deletions
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;