mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2026-05-29 07:50:22 +00:00
Windows: report missing EFI boot loader clearly
When preparing UEFI system encryption, check for the standard Windows bootmgfw.efi path before reading it. If it is absent, show the existing VeraCrypt diagnostic instead of surfacing a generic file-not-found error from the elevated COM path.
This commit is contained in:
@@ -5043,6 +5043,12 @@ namespace VeraCrypt
|
||||
|
||||
EfiBootInst.PrepareBootPartition();
|
||||
|
||||
if (!EfiBootInst.FileExists (szStdMsBootloader))
|
||||
{
|
||||
Error ("WINDOWS_EFI_BOOT_LOADER_MISSING", ParentWindow);
|
||||
throw UserAbort (SRC_POS);
|
||||
}
|
||||
|
||||
EfiBootInst.GetFileSize(szStdMsBootloader, loaderSize);
|
||||
bootLoaderBuf.resize ((size_t) loaderSize);
|
||||
EfiBootInst.ReadFile(szStdMsBootloader, &bootLoaderBuf[0], (DWORD) loaderSize);
|
||||
|
||||
Reference in New Issue
Block a user