summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Universal
diff options
context:
space:
mode:
authorlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>2010-10-25 11:12:15 +0000
committerlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>2010-10-25 11:12:15 +0000
commit6894561804bf6d3be85cb66d80d20fa2b4ed1d96 (patch)
tree9f93b3afc9f5930855a98d63e996a04fc5c54225 /MdeModulePkg/Universal
parent512122dc89dd2ed6470547a0071b4cfe94f539da (diff)
downloadedk2-platforms-6894561804bf6d3be85cb66d80d20fa2b4ed1d96.tar.xz
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.c4
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;
}