[0.4.15][DESK] Don't include .ico files in list of wallpapers (#7726)

CORE-20003

While 0.4.15 will fail to apply a .ico file as a wallpaper, it will still show .ico files as possible wallpapers to select from the file picker. This PR hides these files from the file picker in desk.cpl.

Co-Authored-By: Whindmar Saksit <whindsaks@proton.me>
This commit is contained in:
Carl J. Bialorucki 2025-02-27 20:16:17 -07:00
parent 83a108399b
commit 10ce2b8f08

View file

@ -155,6 +155,9 @@ GdipGetSupportedFileExtensions(VOID)
for (i = 0; i < num; ++i)
{
if (!lstrcmpiW(codecInfo[i].FilenameExtension, L"*.ico"))
continue;
StringCbCatW(lpBuffer, size, codecInfo[i].FilenameExtension);
if (i < (num - 1))
{