提交 90e3ccad 编写于 作者: V vit9696

OcBootManagementLib: Fixed NVRAM reset with some write-protected vars

上级 dd5cf042
OpenCore Changelog OpenCore Changelog
================== ==================
#### v0.7.0
- Fixed NVRAM reset on firmware with write-protected `BootOptionSupport`
#### v0.6.9 #### v0.6.9
- Fixed out-of-sync cursor movement rectangle when loading e.g. CrScreenshotDxe - Fixed out-of-sync cursor movement rectangle when loading e.g. CrScreenshotDxe
- Updated underlying EDK II package to edk2-stable202102 - Updated underlying EDK II package to edk2-stable202102
......
...@@ -80,7 +80,8 @@ IsDeletableVariable ( ...@@ -80,7 +80,8 @@ IsDeletableVariable (
// Only erase boot and driver entries for BDS // Only erase boot and driver entries for BDS
// I.e. BootOrder, Boot####, DriverOrder, Driver#### // I.e. BootOrder, Boot####, DriverOrder, Driver####
// //
if (StrnCmp (Name, L"Boot", StrLen(L"Boot")) == 0 if ((StrnCmp (Name, L"Boot", StrLen(L"Boot")) == 0
&& StrCmp (Name, L"BootOptionSupport") != 0)
|| StrnCmp (Name, L"Driver", StrLen(L"Driver")) == 0) { || StrnCmp (Name, L"Driver", StrLen(L"Driver")) == 0) {
return TRUE; return TRUE;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册