diff options
author | Tobias Weimer <wishmaster51@googlemail.com> | 2015-06-08 19:41:14 +0000 |
---|---|---|
committer | Tobias Weimer <wishmaster51@googlemail.com> | 2015-06-08 19:41:14 +0000 |
commit | 038f6cc65778c17300ce5c62bb25723f7fa16714 (patch) | |
tree | 61b97dfd9eca190a017495f11e0a2c780590f6d3 /plugins/UserInfoEx/src/classPsTreeItem.cpp | |
parent | 9c4ba307862a3408c67a55bd0c003b6f0f2bdc7d (diff) |
UserInfoEx:
- minor warnings fixed
git-svn-id: http://svn.miranda-ng.org/main/trunk@14067 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/UserInfoEx/src/classPsTreeItem.cpp')
-rw-r--r-- | plugins/UserInfoEx/src/classPsTreeItem.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/plugins/UserInfoEx/src/classPsTreeItem.cpp b/plugins/UserInfoEx/src/classPsTreeItem.cpp index 4aab90ed26..8882cc5cef 100644 --- a/plugins/UserInfoEx/src/classPsTreeItem.cpp +++ b/plugins/UserInfoEx/src/classPsTreeItem.cpp @@ -276,7 +276,7 @@ HICON CPsTreeItem::ProtoIcon() {
PROTOACCOUNT **pa;
int ProtoCount;
- if (!CallService(MS_PROTO_ENUMACCOUNTS, (WPARAM)&ProtoCount, (LPARAM)&pa)) {
+ if (!ProtoEnumAccounts(&ProtoCount, &pa)) {
if (_pszName) {
for (int i = 0; i < ProtoCount; i++) {
if (!mir_tcsnicmp(pa[i]->tszAccountName, _A2T(_pszName), mir_tstrlen(pa[i]->tszAccountName))) {
@@ -305,8 +305,6 @@ HICON CPsTreeItem::ProtoIcon() **/
int CPsTreeItem::Icon(HIMAGELIST hIml, OPTIONSDIALOGPAGE *odp, BYTE bInitIconsOnly)
{
- HICON hIcon;
-
// check parameter
if (!_pszName || !odp)
return 1;
@@ -315,7 +313,8 @@ int CPsTreeItem::Icon(HIMAGELIST hIml, OPTIONSDIALOGPAGE *odp, BYTE bInitIconsOn LPCSTR pszIconName = IconKey();
// use icolib to handle icons
- if (!(hIcon = Skin_GetIcon(pszIconName))) {
+ HICON hIcon = Skin_GetIcon(pszIconName);
+ if (!hIcon) {
bool bNeedFree = false;
SKINICONDESC sid = { 0 };
|