diff options
author | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2023-09-24 12:48:34 +0200 |
---|---|---|
committer | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2023-09-24 12:48:34 +0200 |
commit | 718f11d9c381b7a007346744a033fc37c09e9f1c (patch) | |
tree | 6c503f1936f574d1d1c9632d33e45494be8ca103 /src/Setup/Wizard.c | |
parent | 2363506e099a8e55b6010f10f71ff8ea8e1c6dfc (diff) | |
download | VeraCrypt-718f11d9c381b7a007346744a033fc37c09e9f1c.tar.gz VeraCrypt-718f11d9c381b7a007346744a033fc37c09e9f1c.zip |
Windows: make Setup correctly manage option to disable memory protection during upgrade
Diffstat (limited to 'src/Setup/Wizard.c')
-rw-r--r-- | src/Setup/Wizard.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Setup/Wizard.c b/src/Setup/Wizard.c index 3dcb138e..abf76f69 100644 --- a/src/Setup/Wizard.c +++ b/src/Setup/Wizard.c @@ -883,6 +883,9 @@ BOOL CALLBACK MainDialogProc (HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lPa DonColorSchemeId = GetDonVal (2, 9); + // get the initial value of bDisableMemoryProtection by reading the registry + bDisableMemoryProtection = bOriginalDisableMemoryProtection = ReadMemoryProtectionConfig()? FALSE : TRUE; + if (bDevm) { InitWizardDestInstallPath (); |