VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2015-08-13 13:14:25 +0200
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2015-08-14 01:58:39 +0200
commit1d36a1cd05f5e693d441807317ea561dad8811c3 (patch)
tree46822bd3527f883bee7475225f58492e8cfa7a9a /src
parent5db8cdb98feec153c180f1ae33dd095b53260676 (diff)
downloadVeraCrypt-1d36a1cd05f5e693d441807317ea561dad8811c3.tar.gz
VeraCrypt-1d36a1cd05f5e693d441807317ea561dad8811c3.zip
Windows: solve issue of option "Cache password in driver memory" not read on startup, making it always disabled unless a mount is attempted.
Diffstat (limited to 'src')
-rw-r--r--src/Mount/Mount.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Mount/Mount.c b/src/Mount/Mount.c
index 0dd621bc..63f593ed 100644
--- a/src/Mount/Mount.c
+++ b/src/Mount/Mount.c
@@ -706,6 +706,9 @@ void LoadSettingsAndCheckModified (HWND hwndDlg, BOOL bOnlyCheckModified, BOOL*
ConfigReadCompareInt ("SaveVolumeHistory", FALSE, &bHistory, bOnlyCheckModified, pbSettingsModified);
ConfigReadCompareInt ("CachePasswords", FALSE, &bCacheInDriverDefault, bOnlyCheckModified, pbSettingsModified);
+ if (!bOnlyCheckModified)
+ bCacheInDriver = bCacheInDriverDefault;
+
ConfigReadCompareInt ("CachePasswordDuringMultipleMount", FALSE, &bCacheDuringMultipleMount, bOnlyCheckModified, pbSettingsModified);
ConfigReadCompareInt ("WipePasswordCacheOnExit", FALSE, &bWipeCacheOnExit, bOnlyCheckModified, pbSettingsModified);
ConfigReadCompareInt ("WipeCacheOnAutoDismount", TRUE, &bWipeCacheOnAutoDismount, bOnlyCheckModified, pbSettingsModified);