Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ruiyu Ni <ruiyu...@intel.com> Cc: Feng Tian <feng.t...@intel.com> --- MdeModulePkg/Library/BmpImageDecoderLib/BmpImageDecoderLib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/MdeModulePkg/Library/BmpImageDecoderLib/BmpImageDecoderLib.c b/MdeModulePkg/Library/BmpImageDecoderLib/BmpImageDecoderLib.c index 86dcc91..28afd4f 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; } -- 1.9.5.msysgit.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel