Update HiiGetBrowserData API

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8177 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
lgao4 2009-04-27 05:55:16 +00:00
parent 1d451ff9cf
commit 27e87dab26
1 changed files with 1 additions and 6 deletions

View File

@ -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) {