mirror of
https://github.com/reactos/reactos.git
synced 2024-11-20 06:15:26 +00:00
[TASKMGR] Re-include StringSafe usage in trayicon.c (see e.g. 99fb812be
)
This commit is contained in:
parent
434798e312
commit
f4735ccc9b
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue