Fixed two K8 report issue
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7929 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@ -443,6 +443,10 @@ ExtractDataFromHiiHandle (
|
|||||||
SizeOfNvStore = 0;
|
SizeOfNvStore = 0;
|
||||||
CachedStart = 0;
|
CachedStart = 0;
|
||||||
|
|
||||||
|
if (DefaultImage == NULL || Guid == NULL) {
|
||||||
|
return EFI_INVALID_PARAMETER;
|
||||||
|
}
|
||||||
|
|
||||||
Status = GetHiiInterface (&Hii);
|
Status = GetHiiInterface (&Hii);
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
return Status;
|
return Status;
|
||||||
|
@ -393,7 +393,7 @@ InternalPrintGraphic (
|
|||||||
if (GraphicsOutput != NULL) {
|
if (GraphicsOutput != NULL) {
|
||||||
HorizontalResolution = GraphicsOutput->Mode->Info->HorizontalResolution;
|
HorizontalResolution = GraphicsOutput->Mode->Info->HorizontalResolution;
|
||||||
VerticalResolution = GraphicsOutput->Mode->Info->VerticalResolution;
|
VerticalResolution = GraphicsOutput->Mode->Info->VerticalResolution;
|
||||||
} else if (FeaturePcdGet (PcdUgaConsumeSupport)) {
|
} else if (UgaDraw != NULL) {
|
||||||
UgaDraw->GetMode (UgaDraw, &HorizontalResolution, &VerticalResolution, &ColorDepth, &RefreshRate);
|
UgaDraw->GetMode (UgaDraw, &HorizontalResolution, &VerticalResolution, &ColorDepth, &RefreshRate);
|
||||||
} else {
|
} else {
|
||||||
Status = EFI_UNSUPPORTED;
|
Status = EFI_UNSUPPORTED;
|
||||||
@ -466,8 +466,7 @@ InternalPrintGraphic (
|
|||||||
NULL
|
NULL
|
||||||
);
|
);
|
||||||
|
|
||||||
} else if (FeaturePcdGet (PcdUgaConsumeSupport)) {
|
} else if (UgaDraw != NULL) {
|
||||||
ASSERT (UgaDraw!= NULL);
|
|
||||||
|
|
||||||
Blt->Image.Bitmap = AllocateZeroPool (Blt->Width * Blt->Height * sizeof (EFI_GRAPHICS_OUTPUT_BLT_PIXEL));
|
Blt->Image.Bitmap = AllocateZeroPool (Blt->Width * Blt->Height * sizeof (EFI_GRAPHICS_OUTPUT_BLT_PIXEL));
|
||||||
ASSERT (Blt->Image.Bitmap != NULL);
|
ASSERT (Blt->Image.Bitmap != NULL);
|
||||||
|
Reference in New Issue
Block a user