mirror of
https://github.com/reactos/reactos.git
synced 2025-02-28 19:32:59 +00:00
[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:
parent
83a108399b
commit
10ce2b8f08
1 changed files with 3 additions and 0 deletions
|
@ -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))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue