mirror of https://github.com/acidanthera/audk.git
add return error check.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4860 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
7de83e3598
commit
4367051153
|
@ -456,7 +456,10 @@ Returns:
|
|||
Badging = NULL;
|
||||
Status = gBS->LocateProtocol (&gEfiOEMBadgingProtocolGuid, NULL, (VOID**)&Badging);
|
||||
|
||||
ConsoleControl->SetMode (ConsoleControl, EfiConsoleControlScreenGraphics);
|
||||
Status = ConsoleControl->SetMode (ConsoleControl, EfiConsoleControlScreenGraphics);
|
||||
if (EFI_ERROR (Status)) {
|
||||
return EFI_UNSUPPORTED;
|
||||
}
|
||||
|
||||
if (GraphicsOutput != NULL) {
|
||||
SizeOfX = GraphicsOutput->Mode->Info->HorizontalResolution;
|
||||
|
|
Loading…
Reference in New Issue