From 92d9e370f525f0d8ce80e1168f946294c7916979 Mon Sep 17 00:00:00 2001 From: MikalaiR Date: Fri, 10 Jul 2015 11:18:07 +0000 Subject: SkypeWeb: Crashfix. git-svn-id: http://svn.miranda-ng.org/main/trunk@14523 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/SkypeWeb/src/skype_messages.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'protocols/SkypeWeb/src/skype_messages.cpp') diff --git a/protocols/SkypeWeb/src/skype_messages.cpp b/protocols/SkypeWeb/src/skype_messages.cpp index 019379379c..7d39add241 100644 --- a/protocols/SkypeWeb/src/skype_messages.cpp +++ b/protocols/SkypeWeb/src/skype_messages.cpp @@ -183,8 +183,7 @@ void CSkypeProto::OnPrivateMessageEvent(const JSONNode &node) DBEVENTINFO dbei = { sizeof(dbei) }; CMStringA msg; dbei.cbBlob = db_event_getBlobSize(dbevent); - mir_ptr blob((PBYTE)mir_alloc(dbei.cbBlob)); - dbei.pBlob = blob; + dbei.pBlob = mir_ptr((PBYTE)mir_alloc(dbei.cbBlob)); db_event_get(dbevent, &dbei); @@ -265,7 +264,7 @@ void CSkypeProto::OnPrivateMessageEvent(const JSONNode &node) HXML xmlNode = xmlGetNthChild(xml, _T("file"), i); if (xmlNode == NULL) break; - fileSize = atoi(_T2A(xmlGetAttrValue(xmlNode, _T("size")))); + fileSize = _ttoi(xmlGetAttrValue(xmlNode, _T("size"))); ptrA fileName(mir_utf8encodeT(xmlGetText(xmlNode))); if (fileName == NULL || fileSize == NULL) continue; -- cgit v1.2.3