diff options
author | George Hazan <george.hazan@gmail.com> | 2013-10-10 13:27:55 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-10-10 13:27:55 +0000 |
commit | eb25a0d7ed0da6bd4630c553be933df5bd46b6b9 (patch) | |
tree | 334d457598fbc36a90828b64e8d8beafa55c86d4 /plugins/TabSRMM/src/chat/window.cpp | |
parent | 5d6f21891542442500056f8732625cdbf6a3cb76 (diff) |
MS_CLIST_GETSTATUSMODEDESCRIPTION replaced with the direct call
git-svn-id: http://svn.miranda-ng.org/main/trunk@6427 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TabSRMM/src/chat/window.cpp')
-rw-r--r-- | plugins/TabSRMM/src/chat/window.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/TabSRMM/src/chat/window.cpp b/plugins/TabSRMM/src/chat/window.cpp index 165af30def..f92e15b9a4 100644 --- a/plugins/TabSRMM/src/chat/window.cpp +++ b/plugins/TabSRMM/src/chat/window.cpp @@ -2062,11 +2062,10 @@ INT_PTR CALLBACK RoomWndProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lPar dat->hTabIcon = dat->hTabStatusIcon;
if (dat->cache->getStatus() != dat->cache->getOldStatus()) {
+ _tcsncpy_s(dat->szStatus, SIZEOF(dat->szStatus), pcli->pfnGetStatusModeDescription(dat->wStatus, 0), _TRUNCATE);
+
TCITEM item = { 0 };
item.mask = TCIF_TEXT;
-
- lstrcpyn(dat->szStatus, (TCHAR*)CallService(MS_CLIST_GETSTATUSMODEDESCRIPTION, (WPARAM)dat->wStatus, GSMDF_TCHAR), 50);
- dat->szStatus[49] = 0;
item.pszText = dat->newtitle;
item.cchTextMax = 120;
TabCtrl_SetItem(hwndTab, dat->iTabID, &item);
|