mirror of https://github.com/acidanthera/audk.git
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
This commit is contained in:
parent
ba9f835144
commit
3140ceda76
|
@ -471,7 +471,7 @@ ChildIsType (
|
||||||
if (Child->Type != SearchType) {
|
if (Child->Type != SearchType) {
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
if (SearchType != EFI_SECTION_GUID_DEFINED) {
|
if ((SearchType != EFI_SECTION_GUID_DEFINED) || (SectionDefinitionGuid == NULL)) {
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
GuidedSection = (EFI_GUID_DEFINED_SECTION * )(Stream->StreamBuffer + Child->OffsetInStream);
|
GuidedSection = (EFI_GUID_DEFINED_SECTION * )(Stream->StreamBuffer + Child->OffsetInStream);
|
||||||
|
|
Loading…
Reference in New Issue