From: niruiyu Date: Wed, 21 Apr 2010 02:40:36 +0000 (+0000) Subject: Fix a bug that FV->ReadSection cannot get the EFI_SECTION_GUID_DEFINED type section... X-Git-Tag: edk2-stable201903~15958 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=3140ceda761b4a5ed4de72d1314f7f391691b1c0;hp=ba9f8351442f3ff6e008e9be3abf64c74f84eb0e Fix a bug that FV->ReadSection cannot get the EFI_SECTION_GUID_DEFINED type section data. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10384 6f19259b-4bc3-4df7-8a09-765794883524 --- 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);