diff options
author | lgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-10-25 11:12:15 +0000 |
---|---|---|
committer | lgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-10-25 11:12:15 +0000 |
commit | 6894561804bf6d3be85cb66d80d20fa2b4ed1d96 (patch) | |
tree | 9f93b3afc9f5930855a98d63e996a04fc5c54225 /MdeModulePkg/Universal | |
parent | 512122dc89dd2ed6470547a0071b4cfe94f539da (diff) | |
download | edk2-6894561804bf6d3be85cb66d80d20fa2b4ed1d96.tar.gz edk2-6894561804bf6d3be85cb66d80d20fa2b4ed1d96.tar.bz2 edk2-6894561804bf6d3be85cb66d80d20fa2b4ed1d96.zip |
Update HiiDatabase->ExportPackageLists() service to support NULL HII handle per UEFI spec.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10979 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Universal')
-rw-r--r-- | MdeModulePkg/Universal/HiiDatabaseDxe/Database.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/MdeModulePkg/Universal/HiiDatabaseDxe/Database.c b/MdeModulePkg/Universal/HiiDatabaseDxe/Database.c index 534c5647a4..a4640cea40 100644 --- a/MdeModulePkg/Universal/HiiDatabaseDxe/Database.c +++ b/MdeModulePkg/Universal/HiiDatabaseDxe/Database.c @@ -3287,13 +3287,13 @@ HiiExportPackageLists ( HII_DATABASE_RECORD *Node;
UINTN UsedSize;
- if (This == NULL || BufferSize == NULL || Handle == NULL) {
+ if (This == NULL || BufferSize == NULL) {
return EFI_INVALID_PARAMETER;
}
if (*BufferSize > 0 && Buffer == NULL) {
return EFI_INVALID_PARAMETER;
}
- if (!IsHiiHandleValid (Handle)) {
+ if ((Handle != NULL) && (!IsHiiHandleValid (Handle))) {
return EFI_NOT_FOUND;
}
|