summaryrefslogtreecommitdiff
path: root/protocols/JabberG/jabber_userinfo.cpp
diff options
context:
space:
mode:
authorTobias Weimer <wishmaster51@googlemail.com>2012-08-07 22:17:31 +0000
committerTobias Weimer <wishmaster51@googlemail.com>2012-08-07 22:17:31 +0000
commit45adfac09535637462889f1e6d6735a213c1bf7f (patch)
treef22b2a63442cee7f851ffc510240477d2a66a72b /protocols/JabberG/jabber_userinfo.cpp
parent5a3fa5310ba898ce73f2c05e70cfaabaeb6b624d (diff)
support for unicode Fingerprint
git-svn-id: http://svn.miranda-ng.org/main/trunk@1397 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
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" ),