VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Format
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2019-09-25 15:04:28 +0200
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2019-09-25 17:43:59 +0200
commit06e8fbace7f7c85d9b5776c29e7ffc2534478616 (patch)
tree5211ae3ac4f962d68b794fdcc04e08f98b1f9f5c /src/Format
parentc8beacbdd70c29f9c4a38c43c52c557b30d37fe2 (diff)
downloadVeraCrypt-06e8fbace7f7c85d9b5776c29e7ffc2534478616.tar.gz
VeraCrypt-06e8fbace7f7c85d9b5776c29e7ffc2534478616.zip
Windows: Disable the Keyfiles button in system encryption wizard since we don't support them yet.
Diffstat (limited to 'src/Format')
-rw-r--r--src/Format/Tcformat.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Format/Tcformat.c b/src/Format/Tcformat.c
index 0841aaa6..009f8e17 100644
--- a/src/Format/Tcformat.c
+++ b/src/Format/Tcformat.c
@@ -4391,7 +4391,8 @@ BOOL CALLBACK PageDialogProc (HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lPa
SetCheckBox (hwndDlg, IDC_PIM_ENABLE, PimEnable);
SetCheckBox (hwndDlg, IDC_KEYFILES_ENABLE, KeyFilesEnable && !SysEncInEffect());
- EnableWindow (GetDlgItem (hwndDlg, IDC_KEY_FILES), KeyFilesEnable);
+ EnableWindow (GetDlgItem (hwndDlg, IDC_KEY_FILES), KeyFilesEnable && !SysEncInEffect());
+ EnableWindow (GetDlgItem (hwndDlg, IDC_KEYFILES_ENABLE), !SysEncInEffect());
SetWindowTextW (GetDlgItem (hwndDlg, IDC_BOX_HELP), str);