From 9dc9fcaab61b879de0b1fd6e4961032c31887c3d Mon Sep 17 00:00:00 2001 From: MikalaiR Date: Sun, 7 Feb 2016 13:30:40 +0000 Subject: SkypeWeb: forgotten dbtypes git-svn-id: http://svn.miranda-ng.org/main/trunk@16237 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/SkypeWeb/src/skype_db.cpp | 8 ++++++++ protocols/SkypeWeb/src/skype_events.cpp | 7 +------ 2 files changed, 9 insertions(+), 6 deletions(-) (limited to 'protocols') diff --git a/protocols/SkypeWeb/src/skype_db.cpp b/protocols/SkypeWeb/src/skype_db.cpp index 06ff6fa8d5..e297458ed0 100644 --- a/protocols/SkypeWeb/src/skype_db.cpp +++ b/protocols/SkypeWeb/src/skype_db.cpp @@ -163,6 +163,14 @@ void CSkypeProto::InitDBEvents() dbEventType.descr = Translate("URI object"); CallService(MS_DB_EVENT_REGISTERTYPE, 0, (LPARAM)&dbEventType); + dbEventType.eventType = SKYPE_DB_EVENT_TYPE_MOJI; + dbEventType.descr = Translate("Moji"); + CallService(MS_DB_EVENT_REGISTERTYPE, 0, (LPARAM)&dbEventType); + + dbEventType.eventType = SKYPE_DB_EVENT_TYPE_FILE; + dbEventType.descr = Translate("File"); + CallService(MS_DB_EVENT_REGISTERTYPE, 0, (LPARAM)&dbEventType); + dbEventType.eventType = SKYPE_DB_EVENT_TYPE_UNKNOWN; dbEventType.descr = Translate("Unknown event"); CallService(MS_DB_EVENT_REGISTERTYPE, 0, (LPARAM)&dbEventType); diff --git a/protocols/SkypeWeb/src/skype_events.cpp b/protocols/SkypeWeb/src/skype_events.cpp index f48cbb1e9f..b0e4466ad6 100644 --- a/protocols/SkypeWeb/src/skype_events.cpp +++ b/protocols/SkypeWeb/src/skype_events.cpp @@ -73,11 +73,8 @@ INT_PTR CSkypeProto::GetEventText(WPARAM, LPARAM lParam) if (xmlDuration != NULL) { callDuration = _ttol(xmlGetText(xmlDuration)); - xmlDestroyNode(xmlDuration); - xmlDestroyNode(xmlPart); break; } - xmlDestroyNode(xmlPart); } } @@ -124,7 +121,6 @@ INT_PTR CSkypeProto::GetEventText(WPARAM, LPARAM lParam) szText.AppendFormat(Translate("File transfer:\n\tFile name: %s \n\tSize: %lld bytes \n"), fileName, fileSize); } - xmlDestroyNode(xmlNode); } } xmlDestroyNode(xml); @@ -146,8 +142,7 @@ INT_PTR CSkypeProto::GetEventText(WPARAM, LPARAM lParam) HXML xmlA = xmlGetChildByPath(xml, _T("a"), 0); if (xmlA != NULL) { - szText += _T2A(xmlGetAttrValue(xmlA, _T("href"))); - xmlDestroyNode(xmlA); + szText += T2Utf(xmlGetAttrValue(xmlA, _T("href"))); } xmlDestroyNode(xml); } -- cgit v1.2.3