mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 09:25:10 +00:00
- dont show same wallpaper twice
- bug report + patch by Vytis Girdzijauskas, "CMan", cman[at]cman[dot]us See issue #2601 for more details. svn path=/trunk/; revision=28747
This commit is contained in:
parent
ab1415d99c
commit
d0bc8873a1
1 changed files with 10 additions and 9 deletions
|
@ -165,16 +165,16 @@ AddListViewItems(HWND hwndDlg, PGLOBAL_DATA pGlobalData)
|
|||
hFind = FindFirstFile(szSearchPath, &fd);
|
||||
while (hFind != INVALID_HANDLE_VALUE)
|
||||
{
|
||||
/* Don't add any hidden bitmaps */
|
||||
if ((fd.dwFileAttributes & FILE_ATTRIBUTE_HIDDEN) == 0)
|
||||
TCHAR filename[MAX_PATH];
|
||||
|
||||
GetWindowsDirectory(filename, MAX_PATH);
|
||||
|
||||
_tcscat(filename, TEXT("\\"));
|
||||
_tcscat(filename, fd.cFileName);
|
||||
|
||||
/* 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))
|
||||
{
|
||||
TCHAR filename[MAX_PATH];
|
||||
|
||||
GetWindowsDirectory(filename, MAX_PATH);
|
||||
|
||||
_tcscat(filename, TEXT("\\"));
|
||||
_tcscat(filename, fd.cFileName);
|
||||
|
||||
himl = (HIMAGELIST)SHGetFileInfo(filename,
|
||||
0,
|
||||
&sfi,
|
||||
|
@ -780,3 +780,4 @@ BackgroundPageProc(HWND hwndDlg,
|
|||
return FALSE;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue