From c2d0d5e344fe250591e06208f118519d819324b2 Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Wed, 5 Aug 2015 12:06:00 +0200 Subject: Windows: Add extra checks for bootloader tampering. --- src/Common/BootEncryption.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/Common') 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 @@ -1565,6 +1565,11 @@ namespace VeraCrypt bRet = true; } } + catch (SystemException &e) + { + if (!bSilent && (GetLastError () != ERROR_INVALID_IMAGE_HASH)) + e.Show (ParentWindow); + } catch (Exception& e) { if (!bSilent) -- cgit v1.2.3