VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/DcsRe
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2019-01-29 09:16:07 +0100
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2019-03-21 21:01:34 +0100
commit94e2617175881eb4f367980fd4446fd8d445805d (patch)
tree6835f9a39ca8ee303c0ac69150b6a5fdf0ba849a /DcsRe
parentcbf56ebfab01556bcd4576e6cc031535ac77581f (diff)
downloadVeraCrypt-DCS-94e2617175881eb4f367980fd4446fd8d445805d.tar.gz
VeraCrypt-DCS-94e2617175881eb4f367980fd4446fd8d445805d.zip
Fix regression fpr booting using rescue disk
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 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