VeraCrypt
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--DcsRe/DcsRe.c4
1 files changed, 3 insertions, 1 deletions
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