diff options
author | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2015-08-05 12:06:00 +0200 |
---|---|---|
committer | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2015-08-06 00:03:56 +0200 |
commit | c2d0d5e344fe250591e06208f118519d819324b2 (patch) | |
tree | aa8e54e1a08d27962fadc7c3cc37d5f13f80395e /src/Common | |
parent | a06c41c5c9b7e7f1625a0f8b5e06e08016094bc0 (diff) | |
download | VeraCrypt-c2d0d5e344fe250591e06208f118519d819324b2.tar.gz VeraCrypt-c2d0d5e344fe250591e06208f118519d819324b2.zip |
Windows: Add extra checks for bootloader tampering.
Diffstat (limited to 'src/Common')
-rw-r--r-- | src/Common/BootEncryption.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Common/BootEncryption.cpp b/src/Common/BootEncryption.cpp index d9570062..5da2988e 100644 --- a/src/Common/BootEncryption.cpp +++ b/src/Common/BootEncryption.cpp @@ -1561,14 +1561,19 @@ namespace VeraCrypt // compare values
if (0 == memcmp (fingerprint, expectedFingerprint, sizeof (expectedFingerprint)))
{
bRet = true;
}
}
+ catch (SystemException &e)
+ {
+ if (!bSilent && (GetLastError () != ERROR_INVALID_IMAGE_HASH))
+ e.Show (ParentWindow);
+ }
catch (Exception& e)
{
if (!bSilent)
e.Show (ParentWindow);
}
return bRet;
|