mirror of https://github.com/acidanthera/audk.git
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:
parent
859e75c4fc
commit
b3535ab4ef
|
@ -65,7 +65,7 @@ BmpImageDecoderLibConvertBmpToGopBlt (
|
|||
|
||||
ASSERT ((GopBlt != NULL) && (GopBltSize != NULL));
|
||||
|
||||
if (ImageFormat != ImageFormatBmp) {
|
||||
if ((ImageFormat != ImageFormatBmp) && (ImageFormat != ImageFormatUnknown)) {
|
||||
return EFI_UNSUPPORTED;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue