delete unused variable

Signed-off-by: SergeySlice <sergey.slice@gmail.com>
This commit is contained in:
SergeySlice 2021-12-19 08:17:30 +03:00
parent dba50e5976
commit 16aba10098
2 changed files with 4 additions and 1 deletions

View File

@ -447,6 +447,9 @@ SetVariablesForOSX(LOADER_ENTRY *Entry)
LangLen = 0;
AddNvramVariable(L"wake-failure", &gEfiAppleBootGuid, Attributes, 5, &LangLen);
//clear OC present
DeleteNvramVariable(L"opencore-version", &gEfiAppleBootGuid);
return EFI_SUCCESS;
}

View File

@ -380,7 +380,7 @@ ResetNativeNvram ()
//DbgHeader("ResetNativeNvram: cleanup NVRAM variables");
NameSize = sizeof (CHAR16);
Name = (__typeof__(Name))AllocateZeroPool(NameSize);
Name = (__typeof__(Name))AllocatePool(NameSize);
if (Name == NULL) {
return Status;
}