mirror of
https://github.com/valinet/ExplorerPatcher.git
synced 2025-01-31 12:03:50 +01:00
Protect classic theme mitigations state variable from changing once its setting is read from the registry
This commit is contained in:
parent
065acae2c4
commit
79b6f98c6c
@ -64,6 +64,7 @@ DWORD bOpenAtLogon = FALSE;
|
||||
DWORD bClockFlyoutOnWinC = FALSE;
|
||||
DWORD bDisableImmersiveContextMenu = FALSE;
|
||||
DWORD bClassicThemeMitigations = FALSE;
|
||||
DWORD bWasClassicThemeMitigationsSet = FALSE;
|
||||
DWORD bHookStartMenu = TRUE;
|
||||
DWORD bPropertiesInWinX = FALSE;
|
||||
DWORD bNoMenuAccelerator = FALSE;
|
||||
@ -4094,15 +4095,21 @@ void WINAPI LoadSettings(LPARAM lParam)
|
||||
&bDisableImmersiveContextMenu,
|
||||
&dwSize
|
||||
);
|
||||
dwTemp = FALSE;
|
||||
dwSize = sizeof(DWORD);
|
||||
RegQueryValueExW(
|
||||
hKey,
|
||||
TEXT("ClassicThemeMitigations"),
|
||||
0,
|
||||
NULL,
|
||||
&bClassicThemeMitigations,
|
||||
&dwTemp,
|
||||
&dwSize
|
||||
);
|
||||
if (!bWasClassicThemeMitigationsSet)
|
||||
{
|
||||
bClassicThemeMitigations = dwTemp;
|
||||
bWasClassicThemeMitigationsSet = TRUE;
|
||||
}
|
||||
dwSize = sizeof(DWORD);
|
||||
RegQueryValueExW(
|
||||
hKey,
|
||||
|
Loading…
x
Reference in New Issue
Block a user