diff options
Diffstat (limited to 'plugins/TipperYM/src/translations.cpp')
-rw-r--r-- | plugins/TipperYM/src/translations.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/TipperYM/src/translations.cpp b/plugins/TipperYM/src/translations.cpp index 39b32434a5..c037fe8035 100644 --- a/plugins/TipperYM/src/translations.cpp +++ b/plugins/TipperYM/src/translations.cpp @@ -159,9 +159,8 @@ TCHAR *SecondsToTimeDifference(HANDLE hContact, const char *szModuleName, const TCHAR *WordToStatusDesc(HANDLE hContact, const char *szModuleName, const char *szSettingName, TCHAR *buff, int bufflen)
{
WORD wStatus = db_get_w(hContact, szModuleName, szSettingName, ID_STATUS_OFFLINE);
- TCHAR *szStatus = (TCHAR *)CallService(MS_CLIST_GETSTATUSMODEDESCRIPTION, (WPARAM)wStatus, GSMDF_TCHAR);
- _tcsncpy(buff,szStatus, bufflen);
- buff[bufflen - 1] = 0;
+ TCHAR *szStatus = pcli->pfnGetStatusModeDescription(wStatus, 0);
+ _tcsncpy_s(buff, bufflen, szStatus, _TRUNCATE);
return buff;
}
|