diff options
author | Ruiyu Ni <ruiyu.ni@intel.com> | 2015-11-12 07:14:40 +0000 |
---|---|---|
committer | niruiyu <niruiyu@Edk2> | 2015-11-12 07:14:40 +0000 |
commit | b3535ab4ef6e7d05ac9ffbb0bda8bade4e15a3d4 (patch) | |
tree | 2dcb20bf2d74d18922717f1f9741600bc588d3d2 /MdeModulePkg/Library | |
parent | 859e75c4fc42260fdd405141d8a3b909d03809f7 (diff) | |
download | edk2-b3535ab4ef6e7d05ac9ffbb0bda8bade4e15a3d4.tar.gz edk2-b3535ab4ef6e7d05ac9ffbb0bda8bade4e15a3d4.tar.bz2 edk2-b3535ab4ef6e7d05ac9ffbb0bda8bade4e15a3d4.zip |
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
Diffstat (limited to 'MdeModulePkg/Library')
-rw-r--r-- | MdeModulePkg/Library/BmpImageDecoderLib/BmpImageDecoderLib.c | 2 |
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;
}
|