VeraCrypt
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkavsrf <kavsrf@gmail.com>2017-06-12 07:18:09 (GMT)
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2017-06-12 08:25:51 (GMT)
commit73f6393075461a2e99828ba1ddca174c850545c6 (patch)
treeeac4dbbaf0c4c95ea06b7f44d6687813def687d7
parent837fdb2a241b5e1c710dabb59db31d1620543db0 (diff)
downloadVeraCrypt-DCS-73f6393075461a2e99828ba1ddca174c850545c6.zip
VeraCrypt-DCS-73f6393075461a2e99828ba1ddca174c850545c6.tar.gz
Clear DcsExecPartGuid before execute OS to avoid problem in VirtualBox with reboot
-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();