VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/DcsRe
diff options
context:
space:
mode:
Diffstat (limited to 'DcsRe')
-rw-r--r--DcsRe/DcsRe.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/DcsRe/DcsRe.c b/DcsRe/DcsRe.c
index 9c59dfc..7d08d50 100644
--- a/DcsRe/DcsRe.c
+++ b/DcsRe/DcsRe.c
@@ -151,7 +151,9 @@ ActionShell() {
EFI_STATUS
ActionDcsBoot() {
- return EfiExec(NULL, L"EFI\\VeraCrypt\\DcsBoot.efi");
+ SelectEfiVolume();
+ if (EfiBootVolume == NULL) return EFI_NOT_READY;
+ return EfiExec(gFSHandles[EfiBootVolumeIndex], L"EFI\\VeraCrypt\\DcsBoot.efi");
}
CHAR16* DcsBootBins[] = {