From b3535ab4ef6e7d05ac9ffbb0bda8bade4e15a3d4 Mon Sep 17 00:00:00 2001 From: Ruiyu Ni Date: Thu, 12 Nov 2015 07:14:40 +0000 Subject: MdeModulePkg/BmpImageDecoderLib: Support ImageFormatUnknown type Enhance the library to handle unknown image format. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ruiyu Ni Reviewed-by: Feng Tian git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18774 6f19259b-4bc3-4df7-8a09-765794883524 --- MdeModulePkg/Library/BmpImageDecoderLib/BmpImageDecoderLib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'MdeModulePkg/Library/BmpImageDecoderLib') 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; } -- cgit v1.2.3