K8:
1) Fix the bug the assert conditions. || should be &&. 2) Add in code path and check-for-null-pointer to do error handling. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7308 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -2556,7 +2556,7 @@ ExportPackageList (
|
||||
UINTN ResultSize;
|
||||
EFI_HII_PACKAGE_HEADER EndofPackageList;
|
||||
|
||||
ASSERT (Private != NULL || PackageList != NULL || UsedSize != NULL);
|
||||
ASSERT (Private != NULL && PackageList != NULL && UsedSize != NULL);
|
||||
ASSERT (Private->Signature == HII_DATABASE_PRIVATE_DATA_SIGNATURE);
|
||||
ASSERT (IsHiiHandleValid (Handle));
|
||||
|
||||
|
Reference in New Issue
Block a user