Revision: 18774
http://sourceforge.net/p/edk2/code/18774
Author: niruiyu
Date: 2015-11-12 07:14:40 +0000 (Thu, 12 Nov 2015)
Log Message:
-----------
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 <[email protected]>
Reviewed-by: Feng Tian <[email protected]>
Modified Paths:
--------------
trunk/edk2/MdeModulePkg/Library/BmpImageDecoderLib/BmpImageDecoderLib.c
Modified:
trunk/edk2/MdeModulePkg/Library/BmpImageDecoderLib/BmpImageDecoderLib.c
===================================================================
--- trunk/edk2/MdeModulePkg/Library/BmpImageDecoderLib/BmpImageDecoderLib.c
2015-11-12 05:39:39 UTC (rev 18773)
+++ trunk/edk2/MdeModulePkg/Library/BmpImageDecoderLib/BmpImageDecoderLib.c
2015-11-12 07:14:40 UTC (rev 18774)
@@ -65,7 +65,7 @@
ASSERT ((GopBlt != NULL) && (GopBltSize != NULL));
- if (ImageFormat != ImageFormatBmp) {
+ if ((ImageFormat != ImageFormatBmp) && (ImageFormat != ImageFormatUnknown)) {
return EFI_UNSUPPORTED;
}
------------------------------------------------------------------------------
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits