summaryrefslogtreecommitdiff
path: root/IntelFrameworkModulePkg
diff options
context:
space:
mode:
authorniruiyu <niruiyu@6f19259b-4bc3-4df7-8a09-765794883524>2010-04-21 02:41:15 +0000
committerniruiyu <niruiyu@6f19259b-4bc3-4df7-8a09-765794883524>2010-04-21 02:41:15 +0000
commit5efb9132d344f2393268a608f4f9737654774339 (patch)
tree22209232b4bc0fc6343ffc05f81b82a3d3a28d8f /IntelFrameworkModulePkg
parent3140ceda761b4a5ed4de72d1314f7f391691b1c0 (diff)
downloadedk2-platforms-5efb9132d344f2393268a608f4f9737654774339.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@10385 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'IntelFrameworkModulePkg')
-rw-r--r--IntelFrameworkModulePkg/Universal/SectionExtractionDxe/SectionExtraction.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/IntelFrameworkModulePkg/Universal/SectionExtractionDxe/SectionExtraction.c b/IntelFrameworkModulePkg/Universal/SectionExtractionDxe/SectionExtraction.c
index 6bab4db1f0..5d3bb50da7 100644
--- a/IntelFrameworkModulePkg/Universal/SectionExtractionDxe/SectionExtraction.c
+++ b/IntelFrameworkModulePkg/Universal/SectionExtractionDxe/SectionExtraction.c
@@ -327,7 +327,7 @@ OpenSectionStreamEx (
)
{
FRAMEWORK_SECTION_STREAM_NODE *NewStream;
- EFI_TPL OldTpl;
+ EFI_TPL OldTpl;
//
// Allocate a new stream
@@ -446,8 +446,8 @@ BOOLEAN
ChildIsType (
IN FRAMEWORK_SECTION_STREAM_NODE *Stream,
IN FRAMEWORK_SECTION_CHILD_NODE *Child,
- IN EFI_SECTION_TYPE SearchType,
- IN EFI_GUID *SectionDefinitionGuid
+ IN EFI_SECTION_TYPE SearchType,
+ IN EFI_GUID *SectionDefinitionGuid
)
{
EFI_GUID_DEFINED_SECTION *GuidedSection;
@@ -458,7 +458,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);
@@ -1155,11 +1155,11 @@ GetSection (
OUT UINT32 *AuthenticationStatus
)
{
- FRAMEWORK_SECTION_STREAM_NODE *StreamNode;
+ FRAMEWORK_SECTION_STREAM_NODE *StreamNode;
EFI_TPL OldTpl;
EFI_STATUS Status;
- FRAMEWORK_SECTION_CHILD_NODE *ChildNode;
- FRAMEWORK_SECTION_STREAM_NODE *ChildStreamNode;
+ FRAMEWORK_SECTION_CHILD_NODE *ChildNode;
+ FRAMEWORK_SECTION_STREAM_NODE *ChildStreamNode;
UINTN CopySize;
UINT32 ExtractedAuthenticationStatus;
UINTN Instance;