VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Mount/Mount.c
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2018-09-01 00:47:40 +0200
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2018-09-01 01:15:32 +0200
commit09afb91c897e8617b632a6c8cbaab0a98e21549b (patch)
treea93fe894b9f6e1d0ea706124ad749cd6b853fa77 /src/Mount/Mount.c
parent95748751dfcfce1a885dfa4974ca3761ed0f7dbb (diff)
downloadVeraCrypt-09afb91c897e8617b632a6c8cbaab0a98e21549b.tar.gz
VeraCrypt-09afb91c897e8617b632a6c8cbaab0a98e21549b.zip
Windows: extended Windows defragmenter workaround to Windows 8.1
Diffstat (limited to 'src/Mount/Mount.c')
-rw-r--r--src/Mount/Mount.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Mount/Mount.c b/src/Mount/Mount.c
index b2646017..7b42bc4b 100644
--- a/src/Mount/Mount.c
+++ b/src/Mount/Mount.c
@@ -10896,10 +10896,10 @@ static BOOL CALLBACK PerformanceSettingsDlgProc (HWND hwndDlg, UINT msg, WPARAM
CheckDlgButton (hwndDlg, IDC_ENABLE_HARDWARE_ENCRYPTION, (driverConfig & TC_DRIVER_CONFIG_DISABLE_HARDWARE_ENCRYPTION) ? BST_UNCHECKED : BST_CHECKED);
CheckDlgButton (hwndDlg, IDC_ENABLE_EXTENDED_IOCTL_SUPPORT, (driverConfig & TC_DRIVER_CONFIG_ENABLE_EXTENDED_IOCTL) ? BST_CHECKED : BST_UNCHECKED);
CheckDlgButton (hwndDlg, IDC_ALLOW_TRIM_NONSYS_SSD, (driverConfig & VC_DRIVER_CONFIG_ALLOW_NONSYS_TRIM) ? BST_CHECKED : BST_UNCHECKED);
- // checkbox for Windows Defragmenter only usuable on Windows 10
- // on previous version, we can not control Windows defragmenter so
+ // checkbox for Windows Defragmenter only usuable starting from Windows 8.1
+ // on previous versions, we can not control Windows defragmenter so
// this settings is always checked.
- if (CurrentOSMajor >= 10)
+ if (IsOSAtLeast (WIN_8_1))
CheckDlgButton (hwndDlg, IDC_ALLOW_WINDOWS_DEFRAG, (driverConfig & VC_DRIVER_CONFIG_ALLOW_WINDOWS_DEFRAG) ? BST_CHECKED : BST_UNCHECKED);
else
{
@@ -11002,7 +11002,7 @@ static BOOL CALLBACK PerformanceSettingsDlgProc (HWND hwndDlg, UINT msg, WPARAM
SetDriverConfigurationFlag (TC_DRIVER_CONFIG_DISABLE_HARDWARE_ENCRYPTION, disableHW);
SetDriverConfigurationFlag (TC_DRIVER_CONFIG_ENABLE_EXTENDED_IOCTL, enableExtendedIOCTL);
SetDriverConfigurationFlag (VC_DRIVER_CONFIG_ALLOW_NONSYS_TRIM, allowTrimCommand);
- if (CurrentOSMajor >= 10)
+ if (IsOSAtLeast (WIN_8_1))
SetDriverConfigurationFlag (VC_DRIVER_CONFIG_ALLOW_WINDOWS_DEFRAG, allowWindowsDefrag);
DWORD bytesReturned;