[TASKMGR] Follow-up of 'Refactor trayicon.c' (99fb812)

This commit is contained in:
Katayama Hirofumi MZ 2023-06-15 14:18:45 +09:00
parent 99fb812be4
commit ec93c2340d

View file

@ -117,10 +117,12 @@ done:
BOOL TrayIcon_ShellAddTrayIcon(void) BOOL TrayIcon_ShellAddTrayIcon(void)
{ {
NOTIFYICONDATAW nid; NOTIFYICONDATAW nid;
HICON hIcon = TrayIcon_GetProcessorUsageIcon(); HICON hIcon;
BOOL bRetVal; BOOL bRetVal;
WCHAR szMsg[64]; WCHAR szMsg[64];
hIcon = TrayIcon_GetProcessorUsageIcon();
ZeroMemory(&nid, sizeof(nid)); ZeroMemory(&nid, sizeof(nid));
nid.cbSize = sizeof(NOTIFYICONDATAW); nid.cbSize = sizeof(NOTIFYICONDATAW);
nid.hWnd = hMainWnd; nid.hWnd = hMainWnd;
@ -157,10 +159,12 @@ BOOL TrayIcon_ShellRemoveTrayIcon(void)
BOOL TrayIcon_ShellUpdateTrayIcon(void) BOOL TrayIcon_ShellUpdateTrayIcon(void)
{ {
NOTIFYICONDATAW nid; NOTIFYICONDATAW nid;
HICON hIcon = TrayIcon_GetProcessorUsageIcon(); HICON hIcon;
BOOL bRetVal; BOOL bRetVal;
WCHAR szTemp[64]; WCHAR szTemp[64];
hIcon = TrayIcon_GetProcessorUsageIcon();
ZeroMemory(&nid, sizeof(nid)); ZeroMemory(&nid, sizeof(nid));
nid.cbSize = sizeof(NOTIFYICONDATAW); nid.cbSize = sizeof(NOTIFYICONDATAW);
nid.hWnd = hMainWnd; nid.hWnd = hMainWnd;