VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Common
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2020-06-27 23:05:47 +0200
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2020-06-28 01:06:14 +0200
commitb270a453aa53deed01675bc19f1cb14b05c703d1 (patch)
treed028912c6cb8f675fbd6866d5a2496105b7fad46 /src/Common
parent61aec8a9a60337f7e3c93576893ca4085ed65b9d (diff)
downloadVeraCrypt-b270a453aa53deed01675bc19f1cb14b05c703d1.tar.gz
VeraCrypt-b270a453aa53deed01675bc19f1cb14b05c703d1.zip
Windows: remove unused code targeting Windows 2000.
Diffstat (limited to 'src/Common')
-rw-r--r--src/Common/BootEncryption.cpp5
-rw-r--r--src/Common/Dlgcode.c6
2 files changed, 1 insertions, 10 deletions
diff --git a/src/Common/BootEncryption.cpp b/src/Common/BootEncryption.cpp
index e9566951..0a2afb12 100644
--- a/src/Common/BootEncryption.cpp
+++ b/src/Common/BootEncryption.cpp
@@ -5169,10 +5169,7 @@ namespace VeraCrypt
#endif
#ifndef SETUP
void BootEncryption::CheckRequirements ()
- {
- if (nCurrentOS == WIN_2000)
- throw ErrorException ("SYS_ENCRYPTION_UNSUPPORTED_ON_CURRENT_OS", SRC_POS);
-
+ {
if (CurrentOSMajor == 6 && CurrentOSMinor == 0 && CurrentOSServicePack < 1)
throw ErrorException ("SYS_ENCRYPTION_UNSUPPORTED_ON_VISTA_SP0", SRC_POS);
diff --git a/src/Common/Dlgcode.c b/src/Common/Dlgcode.c
index fc1cdc31..63a13083 100644
--- a/src/Common/Dlgcode.c
+++ b/src/Common/Dlgcode.c
@@ -10069,12 +10069,6 @@ wchar_t GetSystemDriveLetter (void)
void TaskBarIconDisplayBalloonTooltip (HWND hwnd, wchar_t *headline, wchar_t *text, BOOL warning)
{
- if (nCurrentOS == WIN_2000)
- {
- MessageBoxW (MainDlg, text, headline, warning ? MB_ICONWARNING : MB_ICONINFORMATION);
- return;
- }
-
NOTIFYICONDATAW tnid;
ZeroMemory (&tnid, sizeof (tnid));