From 57cbd269f047934b48699a3c7ae2dc2bc30c0324 Mon Sep 17 00:00:00 2001 From: qwang12 Date: Wed, 14 May 2008 09:19:06 +0000 Subject: [PATCH] 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 --- .../FrameworkHiiToUefiHiiThunk/HiiDatabase.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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);