add some error check and return.
[people/mcb30/edk2.git] / edk2 / IntelFrameworkModulePkg / Library / GraphicsLib / Graphics.c
index 283d9be..ea8c7d5 100644 (file)
@@ -415,6 +415,8 @@ Returns:
     if (EFI_ERROR (Status)) {\r
       return EFI_UNSUPPORTED;\r
     }\r
+  } else {\r
+    return EFI_UNSUPPORTED;\r
   }\r
 \r
   Instance = 0;\r