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