mirror of https://github.com/acidanthera/audk.git
MdePkg PcdLib: Follow the comment of LibPcdGetNextToken to ASSERT when an invalid TokenNumber input.
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng <star.zeng@intel.com> Reviewed by: Liming Gao <liming.gao@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15016 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
adcd7381bb
commit
da660118bd
|
@ -1002,7 +1002,10 @@ LibPcdGetNextToken (
|
|||
IN UINTN TokenNumber
|
||||
)
|
||||
{
|
||||
GetPiPcdProtocol()->GetNextToken (Guid, &TokenNumber);
|
||||
EFI_STATUS Status;
|
||||
|
||||
Status = GetPiPcdProtocol()->GetNextToken (Guid, &TokenNumber);
|
||||
ASSERT (!EFI_ERROR (Status) || TokenNumber == 0);
|
||||
|
||||
return TokenNumber;
|
||||
}
|
||||
|
|
|
@ -1010,7 +1010,10 @@ LibPcdGetNextToken (
|
|||
IN UINTN TokenNumber
|
||||
)
|
||||
{
|
||||
(GetPiPcdPpiPointer ())->GetNextToken (Guid, &TokenNumber);
|
||||
EFI_STATUS Status;
|
||||
|
||||
Status = (GetPiPcdPpiPointer ())->GetNextToken (Guid, &TokenNumber);
|
||||
ASSERT (!EFI_ERROR (Status) || TokenNumber == 0);
|
||||
|
||||
return TokenNumber;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue