summaryrefslogtreecommitdiff
path: root/protocols/SkypeWeb/src
diff options
context:
space:
mode:
authorMikalaiR <nikolay.romanovich@narod.ru>2015-08-18 17:01:37 +0000
committerMikalaiR <nikolay.romanovich@narod.ru>2015-08-18 17:01:37 +0000
commitf54a8b0bfb54acef4454ccdb5ea8aff9d0cf3ef6 (patch)
tree02aaa448faa9adea24d4cd81f3d8a34a1bc119a5 /protocols/SkypeWeb/src
parent878d72910cccf4f84c7cb45bb4c11134920f3166 (diff)
SkypeWeb: small fixes
git-svn-id: http://svn.miranda-ng.org/main/trunk@14989 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/SkypeWeb/src')
-rw-r--r--protocols/SkypeWeb/src/skype_events.cpp2
-rw-r--r--protocols/SkypeWeb/src/skype_messages.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/protocols/SkypeWeb/src/skype_events.cpp b/protocols/SkypeWeb/src/skype_events.cpp
index 4c160cc976..d623186130 100644
--- a/protocols/SkypeWeb/src/skype_events.cpp
+++ b/protocols/SkypeWeb/src/skype_events.cpp
@@ -162,7 +162,7 @@ INT_PTR CSkypeProto::GetEventText(WPARAM, LPARAM lParam)
}
default:
{
- szText = (char*)pEvent->dbei->pBlob;
+ szText = ptrA(mir_utf8decodeA((char*)pEvent->dbei->pBlob));
}
}
diff --git a/protocols/SkypeWeb/src/skype_messages.cpp b/protocols/SkypeWeb/src/skype_messages.cpp
index 1585ace33a..b8483e7b46 100644
--- a/protocols/SkypeWeb/src/skype_messages.cpp
+++ b/protocols/SkypeWeb/src/skype_messages.cpp
@@ -168,7 +168,7 @@ void CSkypeProto::OnPrivateMessageEvent(const JSONNode &node)
bool bEdited = node["skypeeditedid"];
time_t timestamp = IsoToUnixTime(node["composetime"].as_string().c_str());
- int nEmoteOffset = node["skypeemoteoffset"].as_int();
+ int nEmoteOffset = atoi(node["skypeemoteoffset"].as_string().c_str());
MCONTACT hContact = AddContact(szConversationName, true);