VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Format/Tcformat.c
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2015-05-03 13:43:11 (GMT)
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2015-05-03 13:47:31 (GMT)
commitd1c1aa369ca0f7247b663e22bc4bef06d1531f7e (patch)
tree4461e8db9f13ae8b97751f0ee9cfdfe1af17e3dc /src/Format/Tcformat.c
parent7d52dda67c370de7d615678b61920c822eeb7142 (diff)
downloadVeraCrypt-d1c1aa369ca0f7247b663e22bc4bef06d1531f7e.zip
VeraCrypt-d1c1aa369ca0f7247b663e22bc4bef06d1531f7e.tar.gz
Windows: Make the Format wizard work again when launched from VeraCrypt menu.
Diffstat (limited to 'src/Format/Tcformat.c')
-rw-r--r--src/Format/Tcformat.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/Format/Tcformat.c b/src/Format/Tcformat.c
index 1c0edd8..eabd312 100644
--- a/src/Format/Tcformat.c
+++ b/src/Format/Tcformat.c
@@ -7830,6 +7830,7 @@ void ExtractCommandLine (HWND hwndDlg, char *lpszCommandLine)
{
OptionHistory,
OptionNoIsoCheck,
+ OptionQuit,
OptionTokenLib,
CommandResumeSysEncLogOn,
CommandResumeSysEnc,
@@ -7847,7 +7848,7 @@ void ExtractCommandLine (HWND hwndDlg, char *lpszCommandLine)
{ OptionHistory, "/history", "/h", FALSE },
{ OptionNoIsoCheck, "/noisocheck", "/n", FALSE },
{ OptionTokenLib, "/tokenlib", NULL, FALSE },
-
+ { OptionQuit, "/quit", "/q", FALSE },
{ CommandResumeSysEncLogOn, "/acsysenc", "/a", TRUE },
{ CommandResumeSysEnc, "/csysenc", "/c", TRUE },
{ CommandDecryptSysEnc, "/dsysenc", "/d", TRUE },
@@ -8029,6 +8030,14 @@ void ExtractCommandLine (HWND hwndDlg, char *lpszCommandLine)
break;
+ case OptionQuit:
+ {
+ // Used to indicate non-install elevation
+ char szTmp[32];
+ GetArgumentValue (lpszCommandLineArgs, &i, nNoCommandLineArgs, szTmp, sizeof (szTmp));
+ }
+ break;
+
default:
DialogBoxParamW (hInst, MAKEINTRESOURCEW (IDD_COMMANDHELP_DLG), hwndDlg, (DLGPROC)
CommandHelpDlgProc, (LPARAM) &as);