diff options
author | George Hazan <george.hazan@gmail.com> | 2013-06-17 21:24:53 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-06-17 21:24:53 +0000 |
commit | 5ab0462a05c80e52a629255353405d7e5c39e304 (patch) | |
tree | 84a90be689d517efa8b0c9723724856ce66b4fec /plugins/TabSRMM/src/msgdlgutils.cpp | |
parent | dab6220221dd014aa8490a8f56561b383507304e (diff) |
PS_GETCUSTOMSTATUSICON used instead of raw text
git-svn-id: http://svn.miranda-ng.org/main/trunk@5005 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TabSRMM/src/msgdlgutils.cpp')
-rw-r--r-- | plugins/TabSRMM/src/msgdlgutils.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
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)
|