[TASKMGR] Re-include StringSafe usage in trayicon.c (see e.g. 99fb812be)

This commit is contained in:
Hermès Bélusca-Maïto 2022-06-05 20:33:13 +02:00
parent 434798e312
commit f4735ccc9b
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0

View file

@ -111,7 +111,7 @@ TrayIcon_Update(
BOOL bRetVal;
if (!*szMsg)
LoadStringW(hInst, IDS_MSG_TRAYICONCPUUSAGE, szMsg, ARRAYSIZE(szMsg));
LoadStringW(hInst, IDS_MSG_TRAYICONCPUUSAGE, szMsg, _countof(szMsg));
ZeroMemory(&nid, sizeof(nid));
@ -125,7 +125,7 @@ TrayIcon_Update(
nid.uCallbackMessage = WM_ONTRAYICON;
nid.hIcon = hIcon;
wsprintfW(nid.szTip, szMsg, CpuUsage);
StringCchPrintfW(nid.szTip, _countof(nid.szTip), szMsg, CpuUsage);
bRetVal = Shell_NotifyIconW(dwMessage, &nid);