diff options
author | Ruiyu Ni <ruiyu.ni@intel.com> | 2015-11-18 08:55:06 +0000 |
---|---|---|
committer | vanjeff <vanjeff@Edk2> | 2015-11-18 08:55:06 +0000 |
commit | d6ca0be1685b76bbe5d0ee507c6250f00bf435d5 (patch) | |
tree | b3f4ba340284641f60b3d432c1198480ac0d83a8 /MdeModulePkg | |
parent | fd3eb25595fdd3e42d6a30b145261cc3aa5c8045 (diff) | |
download | edk2-platforms-d6ca0be1685b76bbe5d0ee507c6250f00bf435d5.tar.xz |
MdeModulePkg/BmpImageDecoderLib: Support ImageFormatUnknown type
Enhance the library to handle unknown image format.
(Sync patch r18774 from main trunk.)
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/branches/UDK2015@18884 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg')
-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;
}
|