X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=MdeModulePkg%2FCore%2FDxe%2FSectionExtraction%2FCoreSectionExtraction.c;h=243b6b27aeccdadb0c4384a2739307330f38f3ea;hp=7d4284057c0690e76013bd91b848b166760961d7;hb=3140ceda761b4a5ed4de72d1314f7f391691b1c0;hpb=ba9f8351442f3ff6e008e9be3abf64c74f84eb0e diff --git a/MdeModulePkg/Core/Dxe/SectionExtraction/CoreSectionExtraction.c b/MdeModulePkg/Core/Dxe/SectionExtraction/CoreSectionExtraction.c index 7d4284057c..243b6b27ae 100644 --- a/MdeModulePkg/Core/Dxe/SectionExtraction/CoreSectionExtraction.c +++ b/MdeModulePkg/Core/Dxe/SectionExtraction/CoreSectionExtraction.c @@ -471,7 +471,7 @@ ChildIsType ( if (Child->Type != SearchType) { return FALSE; } - if (SearchType != EFI_SECTION_GUID_DEFINED) { + if ((SearchType != EFI_SECTION_GUID_DEFINED) || (SectionDefinitionGuid == NULL)) { return TRUE; } GuidedSection = (EFI_GUID_DEFINED_SECTION * )(Stream->StreamBuffer + Child->OffsetInStream);