mirror of https://github.com/acidanthera/audk.git
The PCD library function will do ASSERT if CallBackFunction is NULL according to Mde Library Specification.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7386 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
e4a3922f03
commit
fc153004ff
|
@ -869,6 +869,8 @@ LibPcdCallbackOnSet (
|
|||
{
|
||||
EFI_STATUS Status;
|
||||
|
||||
ASSERT (NotificationFunction != NULL);
|
||||
|
||||
Status = (GetPcdPpiPointer ())->CallbackOnSet (Guid, TokenNumber, NotificationFunction);
|
||||
|
||||
ASSERT_EFI_ERROR (Status);
|
||||
|
@ -902,6 +904,8 @@ LibPcdCancelCallback (
|
|||
{
|
||||
EFI_STATUS Status;
|
||||
|
||||
ASSERT (NotificationFunction != NULL);
|
||||
|
||||
Status = (GetPcdPpiPointer ())->CancelCallback (Guid, TokenNumber, NotificationFunction);
|
||||
|
||||
ASSERT_EFI_ERROR (Status);
|
||||
|
|
Loading…
Reference in New Issue