https://git.reactos.org/?p=reactos.git;a=commitdiff;h=ec93c2340d648c15ff3c1…
commit ec93c2340d648c15ff3c1f6d56c993b96c33204b
Author: Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
AuthorDate: Thu Jun 15 14:18:45 2023 +0900
Commit: Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
CommitDate: Thu Jun 15 14:18:45 2023 +0900
[TASKMGR] Follow-up of 'Refactor trayicon.c' (99fb812)
---
base/applications/taskmgr/trayicon.c | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/base/applications/taskmgr/trayicon.c b/base/applications/taskmgr/trayicon.c
index cbfa26e8b24..dcff4a00f28 100644
--- a/base/applications/taskmgr/trayicon.c
+++ b/base/applications/taskmgr/trayicon.c
@@ -117,10 +117,12 @@ done:
BOOL TrayIcon_ShellAddTrayIcon(void)
{
NOTIFYICONDATAW nid;
- HICON hIcon = TrayIcon_GetProcessorUsageIcon();
+ HICON hIcon;
BOOL bRetVal;
WCHAR szMsg[64];
+ hIcon = TrayIcon_GetProcessorUsageIcon();
+
ZeroMemory(&nid, sizeof(nid));
nid.cbSize = sizeof(NOTIFYICONDATAW);
nid.hWnd = hMainWnd;
@@ -157,10 +159,12 @@ BOOL TrayIcon_ShellRemoveTrayIcon(void)
BOOL TrayIcon_ShellUpdateTrayIcon(void)
{
NOTIFYICONDATAW nid;
- HICON hIcon = TrayIcon_GetProcessorUsageIcon();
+ HICON hIcon;
BOOL bRetVal;
WCHAR szTemp[64];
+ hIcon = TrayIcon_GetProcessorUsageIcon();
+
ZeroMemory(&nid, sizeof(nid));
nid.cbSize = sizeof(NOTIFYICONDATAW);
nid.hWnd = hMainWnd;