diff options
author | vanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-03-17 08:14:53 +0000 |
---|---|---|
committer | vanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-03-17 08:14:53 +0000 |
commit | 43670511538308c105f3b61ae001688a6fd635f9 (patch) | |
tree | fb2acbddc1745b23304a8498819d242b2283b706 /MdeModulePkg/Library | |
parent | 7de83e35987e00ddad4c8d5e4f1dbe47d02e3f12 (diff) | |
download | edk2-43670511538308c105f3b61ae001688a6fd635f9.tar.gz edk2-43670511538308c105f3b61ae001688a6fd635f9.tar.bz2 edk2-43670511538308c105f3b61ae001688a6fd635f9.zip |
add return error check.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4860 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Library')
-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;
|