VeraCrypt
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2019-03-03 17:11:37 +0100
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2019-03-03 23:48:06 +0100
commit28b8bf522219339d4264fe9af8ab0055f8c74aad (patch)
tree9e57af0ba3aab71b27e79d6b82c8208405e7bb26
parentd92e045b8da9ab41005d9caa440744997b9de8ce (diff)
downloadVeraCrypt-28b8bf522219339d4264fe9af8ab0055f8c74aad.tar.gz
VeraCrypt-28b8bf522219339d4264fe9af8ab0055f8c74aad.zip
Windows: Add command line switch (/m noattach) that is equivalent to UI option "Only create virtual device without mounting on selected drive letter"
-rw-r--r--src/Mount/Mount.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Mount/Mount.c b/src/Mount/Mount.c
index 33dd5879..467f4962 100644
--- a/src/Mount/Mount.c
+++ b/src/Mount/Mount.c
@@ -9135,6 +9135,10 @@ void ExtractCommandLine (HWND hwndDlg, wchar_t *lpszCommandLine)
// get the label
StringCbCopyW (mountOptions.Label, sizeof (mountOptions.Label), &szTmp[6]);
}
+ else if (!_wcsicmp (szTmp, L"noattach"))
+ {
+ mountOptions.DisableMountManager = TRUE;
+ }
else
AbortProcess ("COMMAND_LINE_ERROR");