From 94e2617175881eb4f367980fd4446fd8d445805d Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Tue, 29 Jan 2019 09:16:07 +0100 Subject: Fix regression fpr booting using rescue disk --- DcsRe/DcsRe.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/DcsRe/DcsRe.c b/DcsRe/DcsRe.c index aef508b..d2b43dd 100644 --- a/DcsRe/DcsRe.c +++ b/DcsRe/DcsRe.c @@ -120,7 +120,9 @@ ActionShell(IN VOID* ctx) { EFI_STATUS ActionDcsBoot(IN VOID* ctx) { - return EfiExec(gFileRootHandle, L"EFI\\VeraCrypt\\DcsBoot.efi"); + SelectEfiVolume(); + if (EfiBootVolume == NULL) return EFI_NOT_READY; + return EfiExec(gFSHandles[EfiBootVolumeIndex], L"EFI\\VeraCrypt\\DcsBoot.efi"); } EFI_STATUS -- cgit v1.2.3