1
0
mirror of https://github.com/valinet/ExplorerPatcher.git synced 2024-11-28 01:10:55 +01:00

sws: Fixed a bug that could prevent correct reload of settings when entries were deleted from the registry

This commit is contained in:
Valentin Radu 2022-10-12 18:29:44 +03:00
parent f285371de0
commit 9d64a8c3a5

View File

@ -5618,6 +5618,8 @@ void sws_ReadSettings(sws_WindowSwitcher* sws)
{
if (sws)
{
sws_WindowSwitcher_InitializeDefaultSettings(sws);
sws->dwWallpaperSupport = SWS_WALLPAPERSUPPORT_EXPLORER;
dwSize = sizeof(DWORD);
RegQueryValueExW(
hKey,
@ -5808,8 +5810,6 @@ DWORD WindowSwitcher(DWORD unused)
{
return 0;
}
sws_WindowSwitcher_InitializeDefaultSettings(sws);
sws->dwWallpaperSupport = SWS_WALLPAPERSUPPORT_EXPLORER;
sws_ReadSettings(sws);
err = sws_error_Report(sws_error_GetFromInternalError(sws_WindowSwitcher_Initialize(&sws, FALSE)), NULL);
if (err == SWS_ERROR_SUCCESS)
@ -5862,6 +5862,7 @@ DWORD WindowSwitcher(DWORD unused)
}
else
{
free(sws);
return 0;
}
}