summaryrefslogtreecommitdiff
path: root/MdeModulePkg
diff options
context:
space:
mode:
Diffstat (limited to 'MdeModulePkg')
-rw-r--r--MdeModulePkg/Library/BmpImageDecoderLib/BmpImageDecoderLib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/MdeModulePkg/Library/BmpImageDecoderLib/BmpImageDecoderLib.c b/MdeModulePkg/Library/BmpImageDecoderLib/BmpImageDecoderLib.c
index 86dcc918c2..28afd4fa9a 100644
--- a/MdeModulePkg/Library/BmpImageDecoderLib/BmpImageDecoderLib.c
+++ b/MdeModulePkg/Library/BmpImageDecoderLib/BmpImageDecoderLib.c
@@ -65,7 +65,7 @@ BmpImageDecoderLibConvertBmpToGopBlt (
ASSERT ((GopBlt != NULL) && (GopBltSize != NULL));
- if (ImageFormat != ImageFormatBmp) {
+ if ((ImageFormat != ImageFormatBmp) && (ImageFormat != ImageFormatUnknown)) {
return EFI_UNSUPPORTED;
}