From 758f96de601fc85e9f62bae402118f03774cc949 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=80=9A=E6=B4=B2?= Date: Fri, 24 Oct 2025 14:45:24 +0800 Subject: [PATCH] Icons (Windows): hides module when no icons are found Fixes #2023 --- src/detection/icons/icons_windows.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/detection/icons/icons_windows.c b/src/detection/icons/icons_windows.c index dc5d36cf0..d7d9684e2 100644 --- a/src/detection/icons/icons_windows.c +++ b/src/detection/icons/icons_windows.c @@ -16,6 +16,9 @@ const char* ffDetectIcons(FFIconsResult* result) ffRegReadUint(hKey, L"{645FF040-5081-101B-9F08-00AA002F954E}", &RecycleBin, NULL); ffRegReadUint(hKey, L"{5399E694-6CE5-4D6C-8FCE-1D8870FDCBA0}", &ControlPanel, NULL); + if (ThisPC && UsersFiles && RemoteNetwork && RecycleBin && ControlPanel) + return "All icons are hidden"; + if (!ThisPC) ffStrbufAppendS(&result->icons1, "This PC, "); if (!UsersFiles)