From 3659ddd70ce8f1616a44e5bcce793eda076b835d Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Sun, 22 Apr 2018 16:14:53 +0200 Subject: Windows: enhance ReflectDrivers mechanism by persisting it across major Windows upgrades. --- src/Mount/Mount.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/Mount') 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); -- cgit v1.2.3