VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2018-08-05 13:32:42 (GMT)
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2018-08-05 22:13:14 (GMT)
commit6c9adee6462ce97f628288bd3da808fd22cdbc7b (patch)
tree34b9fb94a58eb168dba0d852e96f447d6e90d222 /src
parent5367932b38a8b56f46a19a2f14c5b25a20e78c45 (diff)
downloadVeraCrypt-6c9adee6462ce97f628288bd3da808fd22cdbc7b.zip
VeraCrypt-6c9adee6462ce97f628288bd3da808fd22cdbc7b.tar.gz
Windows: Fix hidden OS boot after upgrade to version 1.23 by explicitly specifying the new name for the bootloader to launch after password validation.
Diffstat (limited to 'src')
-rw-r--r--src/Common/BootEncryption.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/Common/BootEncryption.cpp b/src/Common/BootEncryption.cpp
index d00629c..8034d86 100644
--- a/src/Common/BootEncryption.cpp
+++ b/src/Common/BootEncryption.cpp
@@ -2321,7 +2321,7 @@ namespace VeraCrypt
authorizeRetry = ReadConfigInteger (configContent, "AuthorizeRetry", 0);
bmlLockFlags = ReadConfigInteger (configContent, "DcsBmlLockFlags", 0);
bmlDriverEnabled = ReadConfigInteger (configContent, "DcsBmlDriver", 0);
- actionSuccessValue = ReadConfigString (configContent, "ActionSuccess", "", buffer, sizeof (buffer));
+ actionSuccessValue = ReadConfigString (configContent, "ActionSuccess", "postexec file(EFI\\Microsoft\\Boot\\bootmgfw_ms.vc)", buffer, sizeof (buffer));
burn (buffer, sizeof (buffer));
}
@@ -2357,8 +2357,7 @@ namespace VeraCrypt
WriteConfigInteger (configFile, configContent, "AuthorizeRetry", authorizeRetry);
WriteConfigInteger (configFile, configContent, "DcsBmlLockFlags", bmlLockFlags);
WriteConfigInteger (configFile, configContent, "DcsBmlDriver", bmlDriverEnabled);
- if (strlen(actionSuccessValue.c_str()))
- WriteConfigString (configFile, configContent, "ActionSuccess", actionSuccessValue.c_str());
+ WriteConfigString (configFile, configContent, "ActionSuccess", actionSuccessValue.c_str());
// Write unmodified values
char* xml = configContent;