From 672592096bcab453d8bfc14def7b8339f36a26ed Mon Sep 17 00:00:00 2001 From: MikalaiR Date: Sun, 9 Aug 2015 16:22:27 +0000 Subject: SkypeWeb: small fixes. git-svn-id: http://svn.miranda-ng.org/main/trunk@14887 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/SkypeWeb/src/skype_db.cpp | 2 +- protocols/SkypeWeb/src/skype_events.cpp | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'protocols') diff --git a/protocols/SkypeWeb/src/skype_db.cpp b/protocols/SkypeWeb/src/skype_db.cpp index bc5a6d138c..4627a8c873 100644 --- a/protocols/SkypeWeb/src/skype_db.cpp +++ b/protocols/SkypeWeb/src/skype_db.cpp @@ -67,7 +67,7 @@ MEVENT CSkypeProto::AppendDBEvent(MCONTACT hContact, MEVENT hEvent, const char * { mir_cslock lck(m_AppendMessageLock); DBEVENTINFO dbei = { sizeof(dbei) }; - dbei.cbBlob = db_event_getBlobSize(hEvent); + dbei.cbBlob = db_event_getBlobSize(hEvent); dbei.pBlob = mir_ptr((PBYTE)mir_alloc(dbei.cbBlob)); db_event_get(hEvent, &dbei); diff --git a/protocols/SkypeWeb/src/skype_events.cpp b/protocols/SkypeWeb/src/skype_events.cpp index 637da3e35c..7d7d51adc1 100644 --- a/protocols/SkypeWeb/src/skype_events.cpp +++ b/protocols/SkypeWeb/src/skype_events.cpp @@ -72,7 +72,7 @@ INT_PTR CSkypeProto::GetEventText(WPARAM, LPARAM lParam) if (xmlDuration != NULL) { - callDuration = _ttol(ptrT((TCHAR*)xmlGetText(xmlDuration))); + callDuration = _ttol(xmlGetText(xmlDuration)); xmlDestroyNode(xmlDuration); xmlDestroyNode(xmlPart); break; @@ -117,8 +117,8 @@ INT_PTR CSkypeProto::GetEventText(WPARAM, LPARAM lParam) HXML xmlNode = xmlGetNthChild(xml, _T("file"), i); if (xmlNode != NULL) { - fileSize = _ttol(ptrT((TCHAR*)xmlGetAttrValue(xmlNode, _T("size")))); - char *fileName = _T2A(ptrT((TCHAR*)xmlGetText(xmlNode))); + fileSize = _ttol(xmlGetAttrValue(xmlNode, _T("size"))); + char *fileName = _T2A(xmlGetText(xmlNode)); if (fileName != NULL) { szText.AppendFormat(Translate("File transfer:\n\tFile name: %s \n\tSize: %lld bytes \n"), fileName, fileSize); -- cgit v1.2.3