https://git.reactos.org/?p=reactos.git;a=commitdiff;h=f4735ccc9b83eae23cf67…
commit f4735ccc9b83eae23cf6771fa1e7737a39436369
Author: Hermès Bélusca-Maïto <hermes.belusca-maito(a)reactos.org>
AuthorDate: Sun Jun 5 20:33:13 2022 +0200
Commit: Hermès Bélusca-Maïto <hermes.belusca-maito(a)reactos.org>
CommitDate: Thu Jun 15 13:28:16 2023 +0200
[TASKMGR] Re-include StringSafe usage in trayicon.c (see e.g. 99fb812be)
---
base/applications/taskmgr/trayicon.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/base/applications/taskmgr/trayicon.c b/base/applications/taskmgr/trayicon.c
index 5da5d7d778a..9a7c1efcee1 100644
--- a/base/applications/taskmgr/trayicon.c
+++ b/base/applications/taskmgr/trayicon.c
@@ -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);