VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Common
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2016-02-11 17:50:47 +0100
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2016-02-12 00:04:25 +0100
commit7fee9a04c412840b6363b7d311d0bdf435feb5a3 (patch)
treebe6e3fc579f05fda20c859d5519cc38119d5b935 /src/Common
parent39fb2edc25f2703744932f25d956bf7af604fc5f (diff)
downloadVeraCrypt-7fee9a04c412840b6363b7d311d0bdf435feb5a3.tar.gz
VeraCrypt-7fee9a04c412840b6363b7d311d0bdf435feb5a3.zip
Windows: Avoid updating configuration after opening keyfile file dialog when /quit switch used without preferences parameter.
Diffstat (limited to 'src/Common')
-rw-r--r--src/Common/Keyfiles.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/Common/Keyfiles.c b/src/Common/Keyfiles.c
index 9db05266..c634efaf 100644
--- a/src/Common/Keyfiles.c
+++ b/src/Common/Keyfiles.c
@@ -40,6 +40,9 @@ using namespace VeraCrypt;
BOOL HiddenFilesPresentInKeyfilePath = FALSE;
+#ifdef TCMOUNT
+extern BOOL UsePreferences;
+#endif
KeyFile *KeyFileAdd (KeyFile *firstKeyFile, KeyFile *keyFile)
{
@@ -613,9 +616,12 @@ BOOL CALLBACK KeyFilesDlgProc (HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lPa
{
bTryEmptyPasswordWhenKeyfileUsed = IsButtonChecked (GetDlgItem (hwndDlg, IDC_KEYFILES_TRY_EMPTY_PASSWORD));
- WaitCursor ();
- SaveSettings (hwndDlg);
- NormalCursor ();
+ if (UsePreferences)
+ {
+ WaitCursor ();
+ SaveSettings (hwndDlg);
+ NormalCursor ();
+ }
}
#endif
EndDialog (hwndDlg, IDOK);