diff options
Diffstat (limited to 'plugins/CmdLine/src/mimcmd_handlers.cpp')
-rw-r--r-- | plugins/CmdLine/src/mimcmd_handlers.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/plugins/CmdLine/src/mimcmd_handlers.cpp b/plugins/CmdLine/src/mimcmd_handlers.cpp index 75a6aee74c..09ba726dbc 100644 --- a/plugins/CmdLine/src/mimcmd_handlers.cpp +++ b/plugins/CmdLine/src/mimcmd_handlers.cpp @@ -195,10 +195,11 @@ int ParseStatusParam(char *status) char *PrettyStatusMode(int status, char *buffer, int size)
{
- *buffer = 0;
- char *data = (char *) CallService(MS_CLIST_GETSTATUSMODEDESCRIPTION, status, 0);
+ TCHAR *data = pcli->pfnGetStatusModeDescription(status, 0);
if (data)
- strncpy_s(buffer, size, data, _TRUNCATE);
+ strncpy_s(buffer, size, _T2A(data), _TRUNCATE);
+ else
+ *buffer = 0;
return buffer;
}
|