summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM/src/controls.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2019-03-07 18:48:03 +0300
committerGeorge Hazan <ghazan@miranda.im>2019-03-07 22:40:54 +0300
commitfab3905d91890102046dcc4554721991ae8ff413 (patch)
tree7514ac3e6739bf09447e9ff5c0926fee7bfe8155 /plugins/TabSRMM/src/controls.cpp
parent4138d31dd4609d4c29e7bd0dd8dcdedf5f3245b6 (diff)
Skin_GetProtoIcon - new function to retrieve status icon's handle
Diffstat (limited to 'plugins/TabSRMM/src/controls.cpp')
-rw-r--r--plugins/TabSRMM/src/controls.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/TabSRMM/src/controls.cpp b/plugins/TabSRMM/src/controls.cpp
index 7a940de17b..5d0a735fd5 100644
--- a/plugins/TabSRMM/src/controls.cpp
+++ b/plugins/TabSRMM/src/controls.cpp
@@ -970,8 +970,8 @@ LONG_PTR CALLBACK CTabBaseDlg::StatusBarSubclassProc(HWND hWnd, UINT msg, WPARAM
else if (sid->dwId == MSG_ICON_SESSION)
wcsncpy_s(wBuf, TranslateT("Session list.\nClick left for a list of open sessions.\nClick right to access favorites and quickly configure message window behavior"), _TRUNCATE);
}
- else if (sid->tszTooltip)
- wcsncpy(wBuf, sid->tszTooltip, _countof(wBuf));
+ else if (sid->szTooltip.w)
+ wcsncpy_s(wBuf, sid->szTooltip.w, _TRUNCATE);
if (wBuf[0]) {
CallService("mToolTip/ShowTipW", (WPARAM)wBuf, (LPARAM)&ti);