VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Common/Format.c
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2023-09-03 16:47:41 +0200
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2023-09-03 16:47:41 +0200
commit201d09ff5aa69db61643659726b36810d5ac00d4 (patch)
tree7e125fa95b059a7cc5272086ab9ed93defbb878c /src/Common/Format.c
parentd68b9546bd36fa34093b8592d3927ba581fc8e59 (diff)
downloadVeraCrypt-201d09ff5aa69db61643659726b36810d5ac00d4.tar.gz
VeraCrypt-201d09ff5aa69db61643659726b36810d5ac00d4.zip
Windows: remove legacy code (XP, Vista). Simplify code since Windows 7 is now minimal OS version.
Diffstat (limited to 'src/Common/Format.c')
-rw-r--r--src/Common/Format.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Common/Format.c b/src/Common/Format.c
index 334bff3d..4d8dfed9 100644
--- a/src/Common/Format.c
+++ b/src/Common/Format.c
@@ -218,7 +218,7 @@ begin_format:
bFailedRequiredDASD = TRUE;
}
}
- else if (IsOSAtLeast (WIN_VISTA) && driveLetter == -1)
+ else if (driveLetter == -1)
{
// Windows Vista doesn't allow overwriting sectors belonging to an unformatted partition
// to which no drive letter has been assigned under the system. This problem can be worked