From fcd4450462a660eb904c0fc07ff82665dd35b076 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Fri, 12 Apr 2013 05:33:59 +0000 Subject: fixed #311 git-svn-id: http://svn.miranda-ng.org/main/trunk@4431 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/NewsAggregator/Src/Utils.cpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'plugins') diff --git a/plugins/NewsAggregator/Src/Utils.cpp b/plugins/NewsAggregator/Src/Utils.cpp index 5658a25c5f..18bec6d18f 100644 --- a/plugins/NewsAggregator/Src/Utils.cpp +++ b/plugins/NewsAggregator/Src/Utils.cpp @@ -660,7 +660,11 @@ TCHAR * CheckFeed(TCHAR *tszURL, HWND hwndDlg) mir_free(szData); if (hXml != NULL) { int childcount = 0; - HXML node = xi.getChild(hXml, childcount); + HXML node; + if ( !lstrcmpi(xi.getName(hXml), _T("xml"))) + node = xi.getChild(hXml, childcount); + else + node = hXml; while (node) { if (!lstrcmpi(xi.getName(node), _T("rss")) || !lstrcmpi(xi.getName(node), _T("rdf"))) { HXML chan = xi.getChild(node, 0); @@ -721,7 +725,11 @@ VOID CheckCurrentFeed(HANDLE hContact) mir_free(szData); if(hXml != NULL) { int childcount = 0; - HXML node = xi.getChild(hXml, childcount); + HXML node; + if ( !lstrcmpi(xi.getName(hXml), _T("xml"))) + node = xi.getChild(hXml, childcount); + else + node = hXml; while (node) { if (!lstrcmpi(xi.getName(node), _T("rss")) || !lstrcmpi(xi.getName(node), _T("rdf"))) { if (!lstrcmpi(xi.getName(node), _T("rss"))) { -- cgit v1.2.3