summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuiyu Ni <ruiyu.ni@intel.com>2015-11-12 07:14:40 +0000
committerniruiyu <niruiyu@Edk2>2015-11-12 07:14:40 +0000
commitb3535ab4ef6e7d05ac9ffbb0bda8bade4e15a3d4 (patch)
tree2dcb20bf2d74d18922717f1f9741600bc588d3d2
parent859e75c4fc42260fdd405141d8a3b909d03809f7 (diff)
downloadedk2-b3535ab4ef6e7d05ac9ffbb0bda8bade4e15a3d4.zip
edk2-b3535ab4ef6e7d05ac9ffbb0bda8bade4e15a3d4.tar.gz
edk2-b3535ab4ef6e7d05ac9ffbb0bda8bade4e15a3d4.tar.bz2
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 <ruiyu.ni@intel.com> Reviewed-by: Feng Tian <feng.tian@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18774 6f19259b-4bc3-4df7-8a09-765794883524
-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 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;
}