diff options
author | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2019-03-03 16:11:37 (GMT) |
---|---|---|
committer | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2019-03-03 22:48:06 (GMT) |
commit | 28b8bf522219339d4264fe9af8ab0055f8c74aad (patch) | |
tree | 9e57af0ba3aab71b27e79d6b82c8208405e7bb26 | |
parent | d92e045b8da9ab41005d9caa440744997b9de8ce (diff) | |
download | VeraCrypt-28b8bf522219339d4264fe9af8ab0055f8c74aad.zip VeraCrypt-28b8bf522219339d4264fe9af8ab0055f8c74aad.tar.gz |
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.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Mount/Mount.c b/src/Mount/Mount.c index 33dd587..467f496 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"); |