VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/DcsBoot
diff options
context:
space:
mode:
authorkavsrf <kavsrf@gmail.com>2017-06-12 10:18:09 +0300
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2017-06-12 10:25:51 +0200
commit73f6393075461a2e99828ba1ddca174c850545c6 (patch)
treeeac4dbbaf0c4c95ea06b7f44d6687813def687d7 /DcsBoot
parent837fdb2a241b5e1c710dabb59db31d1620543db0 (diff)
downloadVeraCrypt-DCS-73f6393075461a2e99828ba1ddca174c850545c6.tar.gz
VeraCrypt-DCS-73f6393075461a2e99828ba1ddca174c850545c6.zip
Clear DcsExecPartGuid before execute OS to avoid problem in VirtualBox with reboot
Diffstat (limited to 'DcsBoot')
-rw-r--r--DcsBoot/DcsBoot.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/DcsBoot/DcsBoot.c b/DcsBoot/DcsBoot.c
index 4650ae6..244eb62 100644
--- a/DcsBoot/DcsBoot.c
+++ b/DcsBoot/DcsBoot.c
@@ -165,6 +165,10 @@ DcsBootMain(
searchOnESP = CompareGuid(gEfiExecPartGuid, &ImagePartGuid) &&
EFI_ERROR(FileExist(NULL, gEfiExecCmd));
+ // Clear DcsExecPartGuid before execute OS to avoid problem in VirtualBox with reboot.
+ EfiSetVar(L"DcsExecPartGuid", NULL, NULL, 0, EFI_VARIABLE_BOOTSERVICE_ACCESS);
+ EfiSetVar(L"DcsExecCmd", NULL, NULL, 0, EFI_VARIABLE_BOOTSERVICE_ACCESS);
+
// Find new start partition
ConnectAllEfi();
InitBio();