VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Main/UserInterface.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Main/UserInterface.cpp')
-rw-r--r--src/Main/UserInterface.cpp14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/Main/UserInterface.cpp b/src/Main/UserInterface.cpp
index 68048663..070a49c1 100644
--- a/src/Main/UserInterface.cpp
+++ b/src/Main/UserInterface.cpp
@@ -889,11 +889,19 @@ namespace VeraCrypt
{
CommandLineInterface &cmdLine = *CmdLine;
- switch (cmdLine.ArgCommand)
- {
- case CommandId::None:
+ if (cmdLine.ArgCommand == CommandId::None)
return false;
+ if (Preferences.UseStandardInput)
+ {
+ wstring pwdInput;
+ wcin >> pwdInput;
+
+ cmdLine.ArgPassword = make_shared<VolumePassword> (pwdInput);
+ }
+
+ switch (cmdLine.ArgCommand)
+ {
case CommandId::AutoMountDevices:
case CommandId::AutoMountFavorites:
case CommandId::AutoMountDevicesFavorites: