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
This commit is contained in:
Ruiyu Ni 2015-11-12 07:14:40 +00:00 committed by niruiyu
parent 859e75c4fc
commit b3535ab4ef
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ BmpImageDecoderLibConvertBmpToGopBlt (
ASSERT ((GopBlt != NULL) && (GopBltSize != NULL));
if (ImageFormat != ImageFormatBmp) {
if ((ImageFormat != ImageFormatBmp) && (ImageFormat != ImageFormatUnknown)) {
return EFI_UNSUPPORTED;
}