summaryrefslogtreecommitdiff
path: root/protocols/JabberG/jabber_userinfo.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/JabberG/jabber_userinfo.cpp')
-rw-r--r--protocols/JabberG/jabber_userinfo.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/protocols/JabberG/jabber_userinfo.cpp b/protocols/JabberG/jabber_userinfo.cpp
index 279f02c7e5..40d5190a5d 100644
--- a/protocols/JabberG/jabber_userinfo.cpp
+++ b/protocols/JabberG/jabber_userinfo.cpp
@@ -225,19 +225,18 @@ static void sttFillResourceInfo( CJabberProto* ppro, HWND hwndTree, HTREEITEM ht
// Software
HICON hIcon = NULL;
- if (ServiceExists( "Fingerprint/GetClientIcon" )) {
- char *szMirver = NULL;
+ if (ServiceExists(MS_FP_GETCLIENTICONT)) {
if (res->software != NULL) {
mir_sntprintf(buf, SIZEOF(buf), _T("%s %s"), res->software, res->version);
- szMirver = mir_t2a(buf);
- hIcon = (HICON)CallService( "Fingerprint/GetClientIcon", (WPARAM)szMirver, 0 );
- mir_free( szMirver );
+ hIcon = (HICON)CallService( MS_FP_GETCLIENTICONT, (WPARAM)buf, 0 );
} }
sttFillInfoLine( hwndTree, htiResource, hIcon, TranslateT( "Software" ),
res->software ? res->software : TranslateT( "<not specified>" ),
sttInfoLineId(resource, INFOLINE_SOFTWARE));
- DestroyIcon(hIcon);
+
+ if(hIcon)
+ DestroyIcon(hIcon);
// Version
sttFillInfoLine( hwndTree, htiResource, NULL, TranslateT( "Version" ),