diff options
Diffstat (limited to 'plugins/NewsAggregator')
-rw-r--r-- | plugins/NewsAggregator/Src/Utils.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
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"))) {
|