From fab3905d91890102046dcc4554721991ae8ff413 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 7 Mar 2019 18:48:03 +0300 Subject: Skin_GetProtoIcon - new function to retrieve status icon's handle --- plugins/TabSRMM/src/controls.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/TabSRMM/src') 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); -- cgit v1.2.3