[DESK] SetScreenSaver(): Remove remnant 'DeleteMode' variable (#6593)

Addendum to commit d21e3a1d2 (r58360).
This commit is contained in:
Serge Gautherie 2024-03-11 15:35:34 +01:00 committed by GitHub
parent c17a6542ac
commit 6185c66c61
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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);
}