VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Mount/Mount.c
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2018-04-22 16:14:53 +0200
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2018-04-23 16:59:36 +0200
commit3659ddd70ce8f1616a44e5bcce793eda076b835d (patch)
treef34e796866cf21e0a2f4140ccf697095949d5df0 /src/Mount/Mount.c
parentf4edd72662106798dc216c5cabbf39605391523e (diff)
downloadVeraCrypt-3659ddd70ce8f1616a44e5bcce793eda076b835d.tar.gz
VeraCrypt-3659ddd70ce8f1616a44e5bcce793eda076b835d.zip
Windows: enhance ReflectDrivers mechanism by persisting it across major Windows upgrades.
Diffstat (limited to 'src/Mount/Mount.c')
-rw-r--r--src/Mount/Mount.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Mount/Mount.c b/src/Mount/Mount.c
index bbf956f0..8965984f 100644
--- a/src/Mount/Mount.c
+++ b/src/Mount/Mount.c
@@ -9383,6 +9383,13 @@ int WINAPI wWinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, wchar_t *lpsz
if (argv && argc == 2 && wstring (TC_SYSTEM_FAVORITES_SERVICE_CMDLINE_OPTION) == argv[1])
return StartSystemFavoritesService() ? 0 : 1;
+ if (argv && argc == 2 && wstring (VC_WINDOWS_UPGRADE_POSTOOBE_CMDLINE_OPTION) == argv[1])
+ {
+ InitOSVersionInfo();
+ BootEncryption::UpdateSetupConfigFile (true);
+ return 0;
+ }
+
int status;
atexit (localcleanup);
SetProcessShutdownParameters (0x100, 0);