diff options
Diffstat (limited to 'MdeModulePkg/Library/GraphicsLib')
-rw-r--r-- | MdeModulePkg/Library/GraphicsLib/Graphics.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/MdeModulePkg/Library/GraphicsLib/Graphics.c b/MdeModulePkg/Library/GraphicsLib/Graphics.c index f2509c19b9..e86b493db1 100644 --- a/MdeModulePkg/Library/GraphicsLib/Graphics.c +++ b/MdeModulePkg/Library/GraphicsLib/Graphics.c @@ -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;
|