mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2025-11-11 11:08:02 -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:
@@ -75,11 +75,12 @@
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
AdditionalDependencies="..\Crypto\Debug\crypto.lib"
|
||||
AdditionalDependencies="..\Crypto\Debug\crypto.lib mpr.lib"
|
||||
OutputFile="$(OutDir)/VeraCryptExpander.exe"
|
||||
LinkIncremental="2"
|
||||
GenerateManifest="false"
|
||||
IgnoreAllDefaultLibraries="false"
|
||||
DelayLoadDLLs="mpr.dll"
|
||||
GenerateDebugInformation="true"
|
||||
ProgramDatabaseFile="$(OutDir)/ExpandVolume.pdb"
|
||||
SubSystem="2"
|
||||
@@ -168,11 +169,12 @@
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
AdditionalDependencies="..\Crypto\x64\Debug\crypto.lib"
|
||||
AdditionalDependencies="..\Crypto\x64\Debug\crypto.lib mpr.lib"
|
||||
OutputFile="$(OutDir)/VeraCryptExpander.exe"
|
||||
LinkIncremental="2"
|
||||
GenerateManifest="false"
|
||||
IgnoreAllDefaultLibraries="false"
|
||||
DelayLoadDLLs="mpr.dll"
|
||||
GenerateDebugInformation="true"
|
||||
ProgramDatabaseFile="$(OutDir)/ExpandVolume.pdb"
|
||||
SubSystem="2"
|
||||
@@ -256,11 +258,12 @@
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
AdditionalDependencies="..\Crypto\Release\crypto.lib"
|
||||
AdditionalDependencies="..\Crypto\Release\crypto.lib mpr.lib"
|
||||
OutputFile="$(OutDir)/VeraCryptExpander.exe"
|
||||
LinkIncremental="1"
|
||||
GenerateManifest="false"
|
||||
IgnoreAllDefaultLibraries="false"
|
||||
DelayLoadDLLs="mpr.dll"
|
||||
GenerateDebugInformation="false"
|
||||
GenerateMapFile="true"
|
||||
SubSystem="2"
|
||||
@@ -347,11 +350,12 @@
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
AdditionalDependencies="..\Crypto\x64\Release\crypto.lib"
|
||||
AdditionalDependencies="..\Crypto\x64\Release\crypto.lib mpr.lib"
|
||||
OutputFile="$(OutDir)/VeraCryptExpander.exe"
|
||||
LinkIncremental="1"
|
||||
GenerateManifest="false"
|
||||
IgnoreAllDefaultLibraries="false"
|
||||
DelayLoadDLLs="mpr.dll"
|
||||
GenerateDebugInformation="false"
|
||||
GenerateMapFile="true"
|
||||
SubSystem="2"
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user