[DESK.CPL]

Do string case-insensitive comparisons when adding wallpaper file names to the list.
Patch by Ricardo Hanke.
CORE-8775 #resolve #comment Fixed in r65341, thanks!

svn path=/trunk/; revision=65341
This commit is contained in:
Hermès Bélusca-Maïto 2014-11-09 12:00:28 +00:00
parent 9789eed844
commit 9108b0107b

View file

@ -237,7 +237,7 @@ AddListViewItems(HWND hwndDlg, PDATA pData)
}
/* Don't add any hidden bitmaps. Also don't add current wallpaper once more. */
if (((fd.dwFileAttributes & FILE_ATTRIBUTE_HIDDEN) == 0) && (_tcscmp(wallpaperFilename, filename) != 0))
if (((fd.dwFileAttributes & FILE_ATTRIBUTE_HIDDEN) == 0) && (_tcsicmp(wallpaperFilename, filename) != 0))
{
himl = (HIMAGELIST)SHGetFileInfo(filename,
0,