diff options
author | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2018-05-02 19:59:50 +0200 |
---|---|---|
committer | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2018-05-03 08:25:22 +0200 |
commit | 98ff65045e7b6f6cda3bec644b5da4fd61bdf57a (patch) | |
tree | fb9f05fd240ec7439c512a0553599028283db0bc /src/Mount | |
parent | 143d6c1dde328c051200e754248906e145606b8a (diff) | |
download | VeraCrypt-98ff65045e7b6f6cda3bec644b5da4fd61bdf57a.tar.gz VeraCrypt-98ff65045e7b6f6cda3bec644b5da4fd61bdf57a.zip |
Windows: Support machines without "EFI\Boot" folder for EFI system encryption (e.g. Windows LTSB). Compatibility enhancements for EFI system encryption.
Diffstat (limited to 'src/Mount')
-rw-r--r-- | src/Mount/Mount.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/Mount/Mount.c b/src/Mount/Mount.c index 8965984f..e5f7b6fa 100644 --- a/src/Mount/Mount.c +++ b/src/Mount/Mount.c @@ -9386,7 +9386,16 @@ int WINAPI wWinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, wchar_t *lpsz if (argv && argc == 2 && wstring (VC_WINDOWS_UPGRADE_POSTOOBE_CMDLINE_OPTION) == argv[1]) { InitOSVersionInfo(); - BootEncryption::UpdateSetupConfigFile (true); + try + { + BootEncryption::UpdateSetupConfigFile (true); + // re-install our bootloader again in case the upgrade process has removed it. + BootEncryption bootEnc (NULL, true); + bootEnc.InstallBootLoader (true); + } + catch (...) + { + } return 0; } |