1
0
mirror of https://github.com/veracrypt/VeraCrypt.git synced 2025-11-12 03:18:26 -06:00

Windows: Add dropdown menu to Mount button to allow mounting without cache

This commit is contained in:
Mounir IDRASSI
2023-06-02 09:39:14 +02:00
parent 40b17cca0a
commit 5e4e2e0483
47 changed files with 118 additions and 8 deletions

View File

@@ -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

View File

@@ -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));

View File

@@ -1570,6 +1570,7 @@
<entry lang="en" key="IDC_USE_ALL_FREE_SPACE">Use all available free space</entry>
<entry lang="en" key="SYS_ENCRYPTION_UPGRADE_UNSUPPORTED_ALGORITHM">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.</entry>
<entry lang="en" key="LINUX_EX2MSG_TERMINALNOTFOUND">Supported terminal application could not be found, you need either xterm, konsole or gnome-terminal (with dbus-x11).</entry>
<entry lang="en" key="IDM_MOUNT_NO_CACHE">Mount Without Cache</entry>
</localization>
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="VeraCrypt">