VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/DcsBoot
diff options
context:
space:
mode:
authorkavsrf <kavsrf@gmail.com>2017-06-14 12:49:40 +0300
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2017-06-18 15:52:10 +0200
commitaede42a840cc6e3509048182eb204b5ce8f3187c (patch)
tree49623debea5bda47325e71850a32506209ab9aec /DcsBoot
parent37c62bedd36ae255a036fb9e77f529a1021abb9a (diff)
downloadVeraCrypt-DCS-aede42a840cc6e3509048182eb204b5ce8f3187c.tar.gz
VeraCrypt-DCS-aede42a840cc6e3509048182eb204b5ce8f3187c.zip
BML update to sort "BootOrder"
Diffstat (limited to 'DcsBoot')
-rw-r--r--DcsBoot/DcsBoot.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/DcsBoot/DcsBoot.c b/DcsBoot/DcsBoot.c
index 90dcb5d..de79e93 100644
--- a/DcsBoot/DcsBoot.c
+++ b/DcsBoot/DcsBoot.c
@@ -54,7 +54,7 @@ DoExecCmd()
CHAR16* sDcsBmlEfi = L"EFI\\VeraCrypt\\DcsBml.dcs";
CHAR16* sDcsBmlEfiDesc = L"VeraCrypt(DcsBml) driver";
CHAR16* sDcsBmlDriverVar = L"DriverDC5B";
-UINT16 sDcsBmlDriverNum = 0x0DC5B;
+UINT16 DcsBmlDriverNum = 0x0DC5B;
VOID
UpdateDriverBmlStart() {
@@ -72,12 +72,14 @@ UpdateDriverBmlStart() {
if (EFI_ERROR(res)) {
// No -> install
res = BootMenuItemCreate(sDcsBmlDriverVar, sDcsBmlEfiDesc, gFileRootHandle, sDcsBmlEfi, FALSE);
+// ERR_PRINT(L"Drv %s %r\n", sDcsBmlDriverVar, res);
if (!EFI_ERROR(res)) {
len = 0;
res = EfiGetVar(L"DriverOrder", &gEfiGlobalVariableGuid, &tmp, &len, &attr);
if (!EFI_ERROR(res)) len = len / 2;
- res = BootOrderInsert(L"DriverOrder", len, sDcsBmlDriverNum);
+ res = BootOrderInsert(L"DriverOrder", len, DcsBmlDriverNum);
}
+// ERR_PRINT(L"Drv order %d %r\n", len, res);
}
MEM_FREE(tmp);
}
@@ -86,7 +88,7 @@ UpdateDriverBmlStart() {
res = EfiGetVar(sDcsBmlDriverVar, &gEfiGlobalVariableGuid, &tmp, &len, &attr);
if (!EFI_ERROR(res)) {
BootMenuItemRemove(sDcsBmlDriverVar);
- BootOrderRemove(L"DriverOrder", sDcsBmlDriverNum);
+ BootOrderRemove(L"DriverOrder", DcsBmlDriverNum);
}
}
MEM_FREE(tmp);