summaryrefslogtreecommitdiff
path: root/plugins/NewsAggregator
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/NewsAggregator')
-rw-r--r--plugins/NewsAggregator/Src/CheckFeed.cpp12
-rw-r--r--plugins/NewsAggregator/Src/NewsAggregator.cpp2
-rw-r--r--plugins/NewsAggregator/Src/Services.cpp2
3 files changed, 6 insertions, 10 deletions
diff --git a/plugins/NewsAggregator/Src/CheckFeed.cpp b/plugins/NewsAggregator/Src/CheckFeed.cpp
index 613a3e2981..69d0050da0 100644
--- a/plugins/NewsAggregator/Src/CheckFeed.cpp
+++ b/plugins/NewsAggregator/Src/CheckFeed.cpp
@@ -257,8 +257,7 @@ void CheckCurrentFeed(MCONTACT hContact)
LPCTSTR url = xi.getText(imageval);
db_set_ts(hContact, MODULE, "ImageURL", url);
- PROTO_AVATAR_INFORMATIONT pai = { NULL };
- pai.cbSize = sizeof(pai);
+ PROTO_AVATAR_INFORMATION pai = { NULL };
pai.hContact = hContact;
TCHAR *szNick = db_get_tsa(hContact, MODULE, "Nick");
@@ -388,8 +387,7 @@ void CheckCurrentFeed(MCONTACT hContact)
TCHAR *szNick = db_get_tsa(hContact, MODULE, "Nick");
if (szNick) {
- PROTO_AVATAR_INFORMATIONT pai = { NULL };
- pai.cbSize = sizeof(pai);
+ PROTO_AVATAR_INFORMATION pai = { NULL };
pai.hContact = hContact;
TCHAR *ext = _tcsrchr((TCHAR *)url, _T('.')) + 1;
pai.format = ProtoGetAvatarFormat(ext);
@@ -532,8 +530,7 @@ void CheckCurrentFeedAvatar(MCONTACT hContact)
LPCTSTR url = xi.getText(imageval);
db_set_ts(hContact, MODULE, "ImageURL", url);
- PROTO_AVATAR_INFORMATIONT pai = { NULL };
- pai.cbSize = sizeof(pai);
+ PROTO_AVATAR_INFORMATION pai = { NULL };
pai.hContact = hContact;
TCHAR *szNick = db_get_tsa(hContact, MODULE, "Nick");
@@ -568,8 +565,7 @@ void CheckCurrentFeedAvatar(MCONTACT hContact)
TCHAR *szNick = db_get_tsa(hContact, MODULE, "Nick");
if (szNick) {
- PROTO_AVATAR_INFORMATIONT pai = { NULL };
- pai.cbSize = sizeof(pai);
+ PROTO_AVATAR_INFORMATION pai = { NULL };
pai.hContact = hContact;
TCHAR *ext = _tcsrchr((TCHAR *)url, _T('.')) + 1;
diff --git a/plugins/NewsAggregator/Src/NewsAggregator.cpp b/plugins/NewsAggregator/Src/NewsAggregator.cpp
index 5fc4edc8cc..13c08a8693 100644
--- a/plugins/NewsAggregator/Src/NewsAggregator.cpp
+++ b/plugins/NewsAggregator/Src/NewsAggregator.cpp
@@ -80,7 +80,7 @@ extern "C" __declspec(dllexport) int Load(void)
CreateProtoServiceFunction(MODULE, PS_GETSTATUS, NewsAggrGetStatus);
CreateProtoServiceFunction(MODULE, PS_LOADICON, NewsAggrLoadIcon);
CreateProtoServiceFunction(MODULE, PSS_GETINFO, NewsAggrGetInfo);
- CreateProtoServiceFunction(MODULE, PS_GETAVATARINFOT, NewsAggrGetAvatarInfo);
+ CreateProtoServiceFunction(MODULE, PS_GETAVATARINFO, NewsAggrGetAvatarInfo);
CreateProtoServiceFunction(MODULE, PSR_MESSAGE, NewsAggrRecvMessage);
CreateServiceFunction(MS_NEWSAGGREGATOR_CHECKALLFEEDS, CheckAllFeeds);
diff --git a/plugins/NewsAggregator/Src/Services.cpp b/plugins/NewsAggregator/Src/Services.cpp
index c41971d662..eb88bf1f1c 100644
--- a/plugins/NewsAggregator/Src/Services.cpp
+++ b/plugins/NewsAggregator/Src/Services.cpp
@@ -202,7 +202,7 @@ INT_PTR CheckFeed(WPARAM hContact, LPARAM)
INT_PTR NewsAggrGetAvatarInfo(WPARAM wParam, LPARAM lParam)
{
- PROTO_AVATAR_INFORMATIONT *pai = (PROTO_AVATAR_INFORMATIONT *)lParam;
+ PROTO_AVATAR_INFORMATION *pai = (PROTO_AVATAR_INFORMATION *)lParam;
if (!IsMyContact(pai->hContact))
return GAIR_NOAVATAR;