mirror of
https://github.com/reactos/reactos.git
synced 2024-11-20 06:15:26 +00:00
Fixing one bug, do not list current screensaver twice.
svn path=/trunk/; revision=22880
This commit is contained in:
parent
393a276f68
commit
7339d03e09
1 changed files with 10 additions and 6 deletions
|
@ -243,14 +243,14 @@ void AddListViewItems2()
|
|||
LV_ITEM listItem;
|
||||
LV_COLUMN dummy;
|
||||
RECT clientRect;
|
||||
HKEY regKey;
|
||||
//HKEY regKey;
|
||||
SHFILEINFO sfi;
|
||||
HIMAGELIST himl;
|
||||
HIMAGELIST g_hScreenShellImageList = NULL;
|
||||
TCHAR wallpaperFilename[MAX_PATH];
|
||||
DWORD bufferSize = sizeof(wallpaperFilename);
|
||||
DWORD varType = REG_SZ;
|
||||
LONG result;
|
||||
//TCHAR wallpaperFilename[MAX_PATH];
|
||||
//DWORD bufferSize = sizeof(wallpaperFilename);
|
||||
//DWORD varType = REG_SZ;
|
||||
//LONG result;
|
||||
UINT i = 0;
|
||||
int g_ScreenlistViewItemCount = 0;
|
||||
ScreenSaverItem *ScreenSaverItem = NULL;
|
||||
|
@ -288,6 +288,7 @@ void AddListViewItems2()
|
|||
g_ScreenlistViewItemCount++;
|
||||
|
||||
/* Add current screensaver if any */
|
||||
/*
|
||||
RegOpenKeyEx(HKEY_CURRENT_USER, TEXT("Control Panel\\Desktop"), 0, KEY_ALL_ACCESS, ®Key);
|
||||
|
||||
result = RegQueryValueEx(regKey, TEXT("SCRNSAVE.EXE"), 0, &varType, (LPBYTE)wallpaperFilename, &bufferSize);
|
||||
|
@ -329,9 +330,12 @@ void AddListViewItems2()
|
|||
|
||||
g_ScreenlistViewItemCount++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
RegCloseKey(regKey);
|
||||
*/
|
||||
|
||||
/* Add all the screensavers in the C:\ReactOS\System32 directory. */
|
||||
|
||||
|
|
Loading…
Reference in a new issue