diff options
author | niruiyu <niruiyu@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-04-21 02:40:36 +0000 |
---|---|---|
committer | niruiyu <niruiyu@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-04-21 02:40:36 +0000 |
commit | 3140ceda761b4a5ed4de72d1314f7f391691b1c0 (patch) | |
tree | b51458e3e3ec2f4e5a59d8150655348649cd83a8 /MdeModulePkg/Core | |
parent | ba9f8351442f3ff6e008e9be3abf64c74f84eb0e (diff) | |
download | edk2-platforms-3140ceda761b4a5ed4de72d1314f7f391691b1c0.tar.xz |
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
Diffstat (limited to 'MdeModulePkg/Core')
-rw-r--r-- | MdeModulePkg/Core/Dxe/SectionExtraction/CoreSectionExtraction.c | 2 |
1 files changed, 1 insertions, 1 deletions
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);
|