mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 18:52:57 +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;
|
BOOL bRetVal;
|
||||||
|
|
||||||
if (!*szMsg)
|
if (!*szMsg)
|
||||||
LoadStringW(hInst, IDS_MSG_TRAYICONCPUUSAGE, szMsg, ARRAYSIZE(szMsg));
|
LoadStringW(hInst, IDS_MSG_TRAYICONCPUUSAGE, szMsg, _countof(szMsg));
|
||||||
|
|
||||||
ZeroMemory(&nid, sizeof(nid));
|
ZeroMemory(&nid, sizeof(nid));
|
||||||
|
|
||||||
|
@ -125,7 +125,7 @@ TrayIcon_Update(
|
||||||
nid.uCallbackMessage = WM_ONTRAYICON;
|
nid.uCallbackMessage = WM_ONTRAYICON;
|
||||||
nid.hIcon = hIcon;
|
nid.hIcon = hIcon;
|
||||||
|
|
||||||
wsprintfW(nid.szTip, szMsg, CpuUsage);
|
StringCchPrintfW(nid.szTip, _countof(nid.szTip), szMsg, CpuUsage);
|
||||||
|
|
||||||
bRetVal = Shell_NotifyIconW(dwMessage, &nid);
|
bRetVal = Shell_NotifyIconW(dwMessage, &nid);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue