From bf609d3c08f672743b1092dfe125e1e7b77dadb5 Mon Sep 17 00:00:00 2001 From: W0LF Date: Wed, 12 Apr 2023 07:35:29 +0300 Subject: [PATCH] Added DestroyIcon() function. --- wCenterWindow/wCenterWindow.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/wCenterWindow/wCenterWindow.cpp b/wCenterWindow/wCenterWindow.cpp index 333934f..7f3e872 100644 --- a/wCenterWindow/wCenterWindow.cpp +++ b/wCenterWindow/wCenterWindow.cpp @@ -169,6 +169,7 @@ int APIENTRY wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPWSTR lpCmd if (hKbdHook) UnhookWindowsHookEx(hKbdHook); if (hMenu) DestroyMenu(hMenu); Shell_NotifyIconW(NIM_DELETE, &nid); + DestroyIcon(hIcon); LOG_TO_FILE(L"Exit from the %s() function, msg.wParam = %d", TEXT(__FUNCTION__), (int)msg.wParam); CloseLogFile();