MCPcopy Create free account
hub / github.com/CloverHackyColor/CloverBootloader / AddCustomSubEntry

Function AddCustomSubEntry

rEFIt_UEFI/Platform/Settings.cpp:619–642  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

617}
618
619STATIC
620BOOLEAN
621AddCustomSubEntry (
622 IN OUT CUSTOM_LOADER_ENTRY *Entry,
623 IN CUSTOM_LOADER_ENTRY *SubEntry)
624{
625 if ((Entry == NULL) || (SubEntry == NULL)) {
626 return FALSE;
627 }
628
629 if (Entry->SubEntries != NULL) {
630 CUSTOM_LOADER_ENTRY *Entries = Entry->SubEntries;
631
632 while (Entries->Next != NULL) {
633 Entries = Entries->Next;
634 }
635
636 Entries->Next = SubEntry;
637 } else {
638 Entry->SubEntries = SubEntry;
639 }
640
641 return TRUE;
642}
643
644//BOOLEAN
645//CopyKernelAndKextPatches (IN OUT KERNEL_AND_KEXT_PATCHES *Dst,

Callers 1

FillinCustomEntryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected