From 5e4e2e0483436031edfd525215110f6229ac406d Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Fri, 2 Jun 2023 09:39:14 +0200 Subject: Windows: Add dropdown menu to Mount button to allow mounting without cache --- src/Common/Common.h | 1 + src/Common/Dlgcode.c | 2 +- src/Common/Language.xml | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) (limited to 'src/Common') diff --git a/src/Common/Common.h b/src/Common/Common.h index 02b2929a..62ee3d65 100644 --- a/src/Common/Common.h +++ b/src/Common/Common.h @@ -93,6 +93,7 @@ typedef struct int ProtectedHidVolPim; wchar_t Label[33]; /* maximum label length is 32 for NTFS and 11 for FAT32 */ BOOL DisableMountManager; + BOOL SkipCachedPasswords; } MountOptions; #endif diff --git a/src/Common/Dlgcode.c b/src/Common/Dlgcode.c index 2c707f5d..d994aaf3 100644 --- a/src/Common/Dlgcode.c +++ b/src/Common/Dlgcode.c @@ -8887,7 +8887,7 @@ int MountVolume (HWND hwndDlg, } // If using cached passwords, check cache status first - if (password == NULL && IsPasswordCacheEmpty ()) + if (password == NULL && (mountOptions->SkipCachedPasswords || IsPasswordCacheEmpty ())) return 0; ZeroMemory (&mount, sizeof (mount)); diff --git a/src/Common/Language.xml b/src/Common/Language.xml index a2615124..a2555147 100644 --- a/src/Common/Language.xml +++ b/src/Common/Language.xml @@ -1570,6 +1570,7 @@ Use all available free space VeraCrypt cannot be upgraded because the system partition/drive was encrypted using an algorithm that is not supported anymore.\nPlease decrypt your system before upgrading VeraCrypt and then encrypt it again. Supported terminal application could not be found, you need either xterm, konsole or gnome-terminal (with dbus-x11). + Mount Without Cache -- cgit v1.2.3