Make GuidedSection library instance to follow the value of GuidedSectionExtraction protocol/PPI defined in PI spec.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4165 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
lgao4
2007-10-18 09:12:59 +00:00
parent d7f73f568f
commit e6c560aad6
7 changed files with 53 additions and 21 deletions

View File

@@ -796,6 +796,7 @@ Returns:
RETURN_SUCCESS - The size of destination buffer and the size of scratch buffer are successull retrieved.
RETURN_INVALID_PARAMETER - The source data is corrupted
The GUID in InputSection does not match this instance guid.
--*/
{
@@ -804,6 +805,12 @@ Returns:
if (InputSection == NULL) {
return RETURN_INVALID_PARAMETER;
}
if (!CompareGuid (
&gTianoCustomDecompressGuid,
&(((EFI_GUID_DEFINED_SECTION *) InputSection)->SectionDefinitionGuid))) {
return RETURN_INVALID_PARAMETER;
}
//
// Get guid attribute of guid section.
//
@@ -846,7 +853,8 @@ Arguments:
Returns:
RETURN_SUCCESS - Decompression is successfull
RETURN_INVALID_PARAMETER - The source data is corrupted
RETURN_INVALID_PARAMETER - The source data is corrupted, or
The GUID in InputSection does not match this instance guid.
--*/
{
@@ -854,7 +862,14 @@ Returns:
if (InputSection == NULL) {
return RETURN_INVALID_PARAMETER;
}
}
if (!CompareGuid (
&gTianoCustomDecompressGuid,
&(((EFI_GUID_DEFINED_SECTION *) InputSection)->SectionDefinitionGuid))) {
return RETURN_INVALID_PARAMETER;
}
//
// Set Authentication to Zero.
//