From 27e87dab26709b7b03a6b7cb275a38e7ea915606 Mon Sep 17 00:00:00 2001 From: lgao4 Date: Mon, 27 Apr 2009 05:55:16 +0000 Subject: [PATCH] Update HiiGetBrowserData API git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8177 6f19259b-4bc3-4df7-8a09-765794883524 --- .../FrameworkHiiOnUefiHiiThunk/ConfigAccess.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/EdkCompatibilityPkg/Compatibility/FrameworkHiiOnUefiHiiThunk/ConfigAccess.c b/EdkCompatibilityPkg/Compatibility/FrameworkHiiOnUefiHiiThunk/ConfigAccess.c index ef75fc3d82..2dd202bb39 100644 --- a/EdkCompatibilityPkg/Compatibility/FrameworkHiiOnUefiHiiThunk/ConfigAccess.c +++ b/EdkCompatibilityPkg/Compatibility/FrameworkHiiOnUefiHiiThunk/ConfigAccess.c @@ -674,7 +674,6 @@ CreateIfrDataArray ( FORMSET_STORAGE *BufferStorage; UINTN Size; EFI_STRING String; - UINT8 *TempBuffer; *NvMapAllocated = FALSE; @@ -730,11 +729,7 @@ CreateIfrDataArray ( IfrDataArray->NvRamMap = ConfigAccess->ThunkContext->NvMapOverride; } - TempBuffer = (UINT8 *) HiiGetBrowserData (&BufferStorage->Guid, BufferStorage->Name, BrowserDataSize); - ASSERT (TempBuffer == NULL); - CopyMem (IfrDataArray->NvRamMap, TempBuffer, BrowserDataSize); - FreePool (TempBuffer); - + ASSERT (HiiGetBrowserData (&BufferStorage->Guid, BufferStorage->Name, BrowserDataSize, (UINT8 *) IfrDataArray->NvRamMap)); IfrDataEntry = (FRAMEWORK_EFI_IFR_DATA_ENTRY *) (IfrDataArray + 1); switch (Type) {