diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2013-04-12 05:33:59 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2013-04-12 05:33:59 +0000 |
commit | fcd4450462a660eb904c0fc07ff82665dd35b076 (patch) | |
tree | 22d170d46bc941cbea5ce891aec109f62f1f4c10 /plugins/NewsAggregator | |
parent | 5ed5255960c20453758b6cef4713ad81080a9b74 (diff) |
fixed #311
git-svn-id: http://svn.miranda-ng.org/main/trunk@4431 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
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"))) {
|