From 1d36a1cd05f5e693d441807317ea561dad8811c3 Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Thu, 13 Aug 2015 13:14:25 +0200 Subject: Windows: solve issue of option "Cache password in driver memory" not read on startup, making it always disabled unless a mount is attempted. --- src/Mount/Mount.c | 3 +++ 1 file changed, 3 insertions(+) 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); -- cgit v1.2.3