mirror of
https://github.com/reactos/reactos.git
synced 2024-11-23 11:33:31 +08:00
[DESK] SetScreenSaver(): Remove remnant 'DeleteMode' variable (#6593)
Addendum to commit d21e3a1d2
(r58360).
This commit is contained in:
parent
c17a6542ac
commit
6185c66c61
@ -590,9 +590,6 @@ static VOID
|
||||
SetScreenSaver(HWND hwndDlg, PDATA pData)
|
||||
{
|
||||
HKEY regKey;
|
||||
BOOL DeleteMode = FALSE;
|
||||
|
||||
DBG_UNREFERENCED_LOCAL_VARIABLE(DeleteMode);
|
||||
|
||||
if (RegOpenKeyEx(HKEY_CURRENT_USER,
|
||||
_T("Control Panel\\Desktop"),
|
||||
@ -622,7 +619,6 @@ SetScreenSaver(HWND hwndDlg, PDATA pData)
|
||||
{
|
||||
/* Windows deletes the value if no screensaver is set */
|
||||
RegDeleteValue(regKey, _T("SCRNSAVE.EXE"));
|
||||
DeleteMode = TRUE;
|
||||
|
||||
SystemParametersInfo(SPI_SETSCREENSAVEACTIVE, FALSE, 0, SPIF_UPDATEINIFILE);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user