Skip to content

Commit 16aba10

Browse files
committed
delete unused variable
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
1 parent dba50e5 commit 16aba10

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

rEFIt_UEFI/Platform/DataHubCpu.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -447,6 +447,9 @@ SetVariablesForOSX(LOADER_ENTRY *Entry)
447447
LangLen = 0;
448448
AddNvramVariable(L"wake-failure", &gEfiAppleBootGuid, Attributes, 5, &LangLen);
449449

450+
//clear OC present
451+
DeleteNvramVariable(L"opencore-version", &gEfiAppleBootGuid);
452+
450453
return EFI_SUCCESS;
451454
}
452455

rEFIt_UEFI/Platform/Nvram.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ ResetNativeNvram ()
380380
//DbgHeader("ResetNativeNvram: cleanup NVRAM variables");
381381

382382
NameSize = sizeof (CHAR16);
383-
Name = (__typeof__(Name))AllocateZeroPool(NameSize);
383+
Name = (__typeof__(Name))AllocatePool(NameSize);
384384
if (Name == NULL) {
385385
return Status;
386386
}

0 commit comments

Comments
 (0)