From 1967bd862eaa5130260a7d7beea9657778718c31 Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Wed, 19 Dec 2018 00:38:56 +0100 Subject: Windows: Add mount option that allows mounting a volume without attaching it to the specified drive letter. This is useful in situation where Windows has issue with the filesystem (e.g. ReFS on Windows 10 1809) and we need to use third party software to be able to use the filesystem under Windows through low level VeraCrypt virtual device (e.g. \Device\VeraCryptVolumeX). --- src/Common/Dlgcode.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'src/Common/Dlgcode.c') diff --git a/src/Common/Dlgcode.c b/src/Common/Dlgcode.c index f9b6f327..448ee1ab 100644 --- a/src/Common/Dlgcode.c +++ b/src/Common/Dlgcode.c @@ -8049,16 +8049,15 @@ retry: mount.bMountReadOnly = mountOptions->ReadOnly; mount.bMountRemovable = mountOptions->Removable; mount.bPreserveTimestamp = mountOptions->PreserveTimestamp; - - mount.bMountManager = TRUE; + + if (mountOptions->DisableMountManager) + mount.bMountManager = FALSE; + else + mount.bMountManager = TRUE; mount.pkcs5_prf = pkcs5; mount.bTrueCryptMode = truecryptMode; mount.VolumePim = pim; - // Windows 2000 mount manager causes problems with remounted volumes - if (CurrentOSMajor == 5 && CurrentOSMinor == 0) - mount.bMountManager = FALSE; - wstring path = volumePath; if (path.find (L"\\\\?\\") == 0) { -- cgit v1.2.3