1
0
mirror of https://github.com/veracrypt/VeraCrypt.git synced 2025-12-28 17:49:45 -06:00

Windows: Don't show disconnected network drives in the list of available drives. Add option to make them available for mounting if needed.

This commit is contained in:
Mounir IDRASSI
2016-01-10 19:35:57 +01:00
parent 5597a1e390
commit fb430c403b
12 changed files with 109 additions and 42 deletions

View File

@@ -282,6 +282,7 @@ void LoadSettings (HWND hwndDlg)
defaultKeyFilesParam.EnableKeyFiles = ConfigReadInt ("UseKeyfiles", FALSE);
bPreserveTimestamp = defaultMountOptions.PreserveTimestamp = ConfigReadInt ("PreserveTimestamps", TRUE);
bShowDisconnectedNetworkDrives = ConfigReadInt ("ShowDisconnectedNetworkDrives", FALSE);
defaultMountOptions.Removable = ConfigReadInt ("MountVolumesRemovable", FALSE);
defaultMountOptions.ReadOnly = ConfigReadInt ("MountVolumesReadOnly", FALSE);
defaultMountOptions.ProtectHiddenVolume = FALSE;
@@ -871,6 +872,7 @@ BOOL CALLBACK MainDialogProc (HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lPa
// Set critical default options in case UsePreferences is false
bPreserveTimestamp = defaultMountOptions.PreserveTimestamp = TRUE;
bShowDisconnectedNetworkDrives = FALSE;
if (UsePreferences)
{