mirror of
https://github.com/reactos/reactos.git
synced 2026-06-05 19:43:39 +08:00
[TASKMGR] Re-include StringSafe usage in trayicon.c (see e.g. 99fb812be)
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user