Skip to content

Commit 758f96d

Browse files
committed
Icons (Windows): hides module when no icons are found
Fixes #2023
1 parent db623b9 commit 758f96d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/detection/icons/icons_windows.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ const char* ffDetectIcons(FFIconsResult* result)
1616
ffRegReadUint(hKey, L"{645FF040-5081-101B-9F08-00AA002F954E}", &RecycleBin, NULL);
1717
ffRegReadUint(hKey, L"{5399E694-6CE5-4D6C-8FCE-1D8870FDCBA0}", &ControlPanel, NULL);
1818

19+
if (ThisPC && UsersFiles && RemoteNetwork && RecycleBin && ControlPanel)
20+
return "All icons are hidden";
21+
1922
if (!ThisPC)
2023
ffStrbufAppendS(&result->icons1, "This PC, ");
2124
if (!UsersFiles)

0 commit comments

Comments
 (0)