mirror of https://github.com/acidanthera/audk.git
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:
parent
b47694b968
commit
57cbd269f0
|
@ -301,7 +301,15 @@ MapUefiHiiHandles (
|
||||||
HandleBuffer
|
HandleBuffer
|
||||||
);
|
);
|
||||||
if (EFI_ERROR (Status) && (Status != EFI_BUFFER_TOO_SMALL)) {
|
if (EFI_ERROR (Status) && (Status != EFI_BUFFER_TOO_SMALL)) {
|
||||||
return Status;
|
//
|
||||||
|
// 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);
|
HandleBuffer = AllocateZeroPool (HandleBufferLength);
|
||||||
|
|
Loading…
Reference in New Issue