From 5ab0462a05c80e52a629255353405d7e5c39e304 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 17 Jun 2013 21:24:53 +0000 Subject: PS_GETCUSTOMSTATUSICON used instead of raw text git-svn-id: http://svn.miranda-ng.org/main/trunk@5005 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/TabSRMM/src/msgdlgutils.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'plugins/TabSRMM/src/msgdlgutils.cpp') diff --git a/plugins/TabSRMM/src/msgdlgutils.cpp b/plugins/TabSRMM/src/msgdlgutils.cpp index 2f25a63a10..9f5385688b 100644 --- a/plugins/TabSRMM/src/msgdlgutils.cpp +++ b/plugins/TabSRMM/src/msgdlgutils.cpp @@ -2141,14 +2141,16 @@ void TSAPI ConfigureSmileyButton(TWindowData *dat) HICON TSAPI GetXStatusIcon(const TWindowData *dat) { - char szServiceName[128]; BYTE xStatus = dat->cache->getXStatusId(); + if (xStatus == 0) + return NULL; - mir_snprintf(szServiceName, 128, "%s/GetXStatusIcon", dat->cache->getActiveProto()); + char szServiceName[128]; + mir_snprintf(szServiceName, 128, "%s%s", dat->cache->getActiveProto(), PS_GETCUSTOMSTATUSICON); + if ( !ServiceExists(szServiceName)) + return NULL; - if ( ServiceExists(szServiceName)) - return (HICON)(CallProtoService(dat->cache->getActiveProto(), "/GetXStatusIcon", xStatus, 0)); - return 0; + return (HICON)(CallProtoService(dat->cache->getActiveProto(), PS_GETCUSTOMSTATUSICON, xStatus, 0)); } LRESULT TSAPI GetSendButtonState(HWND hwnd) -- cgit v1.2.3