Remove ASSERT() if ReadOnlyVariable2 PPI is not present. Instead, skip variable read if the PPI is not present.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5312 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
mdkinney 2008-05-29 23:09:04 +00:00
parent a163442495
commit 1ad76c3466
1 changed files with 19 additions and 20 deletions

View File

@ -276,27 +276,26 @@ DxeLoadCore (
NULL, NULL,
(VOID **)&Variable (VOID **)&Variable
); );
ASSERT_EFI_ERROR (Status);
DataSize = sizeof (MemoryData);
Status = Variable->GetVariable (
Variable,
EFI_MEMORY_TYPE_INFORMATION_VARIABLE_NAME,
&gEfiMemoryTypeInformationGuid,
NULL,
&DataSize,
&MemoryData
);
if (!EFI_ERROR (Status)) { if (!EFI_ERROR (Status)) {
// DataSize = sizeof (MemoryData);
// Build the GUID'd HOB for DXE Status = Variable->GetVariable (
// Variable,
BuildGuidDataHob ( EFI_MEMORY_TYPE_INFORMATION_VARIABLE_NAME,
&gEfiMemoryTypeInformationGuid, &gEfiMemoryTypeInformationGuid,
MemoryData, NULL,
DataSize &DataSize,
); &MemoryData
);
if (!EFI_ERROR (Status)) {
//
// Build the GUID'd HOB for DXE
//
BuildGuidDataHob (
&gEfiMemoryTypeInformationGuid,
MemoryData,
DataSize
);
}
} }
// //