Update MapUefiHiiHandles to return EFI_SUCCESS if there is no packages registered in UEFI HII database.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5202 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
qwang12 2008-05-14 09:19:06 +00:00
parent b47694b968
commit 57cbd269f0
1 changed files with 9 additions and 1 deletions

View File

@ -301,8 +301,16 @@ MapUefiHiiHandles (
HandleBuffer
);
if (EFI_ERROR (Status) && (Status != EFI_BUFFER_TOO_SMALL)) {
//
// As no package is registered to UEFI HII Database, EFI_SUCCESS is returned.
//
//
if (Status == EFI_NOT_FOUND) {
return EFI_SUCCESS;
} else {
return Status;
}
}
HandleBuffer = AllocateZeroPool (HandleBufferLength);
Status = mHiiDatabase->ListPackageLists (