summaryrefslogtreecommitdiff
path: root/EdkCompatibilityPkg/Compatibility/FrameworkHiiToUefiHiiThunk
diff options
context:
space:
mode:
authorqwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524>2008-05-14 09:19:06 +0000
committerqwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524>2008-05-14 09:19:06 +0000
commit57cbd269f047934b48699a3c7ae2dc2bc30c0324 (patch)
treefcf7bb800571c6758a1494e6c064c059ef435dcd /EdkCompatibilityPkg/Compatibility/FrameworkHiiToUefiHiiThunk
parentb47694b968e6df0c4fe4753f349c7bb53bb347c1 (diff)
downloadedk2-platforms-57cbd269f047934b48699a3c7ae2dc2bc30c0324.tar.xz
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
Diffstat (limited to 'EdkCompatibilityPkg/Compatibility/FrameworkHiiToUefiHiiThunk')
-rw-r--r--EdkCompatibilityPkg/Compatibility/FrameworkHiiToUefiHiiThunk/HiiDatabase.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/EdkCompatibilityPkg/Compatibility/FrameworkHiiToUefiHiiThunk/HiiDatabase.c b/EdkCompatibilityPkg/Compatibility/FrameworkHiiToUefiHiiThunk/HiiDatabase.c
index 8eab0813e6..91410e8b69 100644
--- a/EdkCompatibilityPkg/Compatibility/FrameworkHiiToUefiHiiThunk/HiiDatabase.c
+++ b/EdkCompatibilityPkg/Compatibility/FrameworkHiiToUefiHiiThunk/HiiDatabase.c
@@ -301,7 +301,15 @@ MapUefiHiiHandles (
HandleBuffer
);
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);