From 038f6cc65778c17300ce5c62bb25723f7fa16714 Mon Sep 17 00:00:00 2001 From: Tobias Weimer Date: Mon, 8 Jun 2015 19:41:14 +0000 Subject: UserInfoEx: - minor warnings fixed git-svn-id: http://svn.miranda-ng.org/main/trunk@14067 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/UserInfoEx/src/classPsTreeItem.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'plugins/UserInfoEx/src/classPsTreeItem.cpp') 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 }; -- cgit v1.2.3