summaryrefslogtreecommitdiff
path: root/protocols/FacebookRM/src/messages.cpp
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2013-11-17 23:23:53 +0000
committerRobert Pösel <robyer@seznam.cz>2013-11-17 23:23:53 +0000
commitb31c85fadafb41df147ff0c27baa04a23a48a27e (patch)
treed12d7cd770e1d193ed1ed683e36963cfb4abf7e0 /protocols/FacebookRM/src/messages.cpp
parent96d149d7437f2a8dafcb5fb9fd535f0b2af47c69 (diff)
Facebook: use TCHAR* instead of char* on many places (chat related)
git-svn-id: http://svn.miranda-ng.org/main/trunk@6932 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM/src/messages.cpp')
-rw-r--r--protocols/FacebookRM/src/messages.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/protocols/FacebookRM/src/messages.cpp b/protocols/FacebookRM/src/messages.cpp
index cb5abc57cb..cc75d048dd 100644
--- a/protocols/FacebookRM/src/messages.cpp
+++ b/protocols/FacebookRM/src/messages.cpp
@@ -76,7 +76,7 @@ void FacebookProto::SendChatMsgWorker(void *p)
send_chat *data = static_cast<send_chat*>(p);
std::string err_message = "";
- HANDLE hContact = ChatIDToHContact(data->chat_id);
+ HANDLE hContact = ChatIDToHContact(std::tstring(_A2T(data->chat_id.c_str())));
if (hContact) {
std::string tid;
DBVARIANT dbv;
@@ -98,9 +98,9 @@ void FacebookProto::SendChatMsgWorker(void *p)
if (!tid.empty()) {
if (facy.send_message(tid, data->msg, &err_message, MESSAGE_TID))
- UpdateChat(data->chat_id.c_str(), facy.self_.user_id.c_str(), facy.self_.real_name.c_str(), data->msg.c_str());
+ UpdateChat(_A2T(data->chat_id.c_str()), facy.self_.user_id.c_str(), facy.self_.real_name.c_str(), data->msg.c_str());
else
- UpdateChat(data->chat_id.c_str(), NULL, NULL, err_message.c_str());
+ UpdateChat(_A2T(data->chat_id.c_str()), NULL, NULL, err_message.c_str());
}
}