From 72a760beb0595555959e0e45f4a0854dd53869a7 Mon Sep 17 00:00:00 2001 From: Evan Stade Date: Fri, 3 Aug 2007 17:30:11 -0700 Subject: [PATCH] oleaut32: Allow PNG_COLOR_TYPE_RGB_ALPHA. --- dlls/oleaut32/olepicture.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dlls/oleaut32/olepicture.c b/dlls/oleaut32/olepicture.c index ca46d0144f8..b12a85b62d7 100644 --- a/dlls/oleaut32/olepicture.c +++ b/dlls/oleaut32/olepicture.c @@ -1443,7 +1443,8 @@ static HRESULT OLEPictureImpl_LoadPNG(OLEPictureImpl *This, BYTE *xbuf, ULONG xr ppng_read_info(png_ptr, info_ptr); if(!(png_ptr->color_type == PNG_COLOR_TYPE_RGB || - png_ptr->color_type == PNG_COLOR_TYPE_PALETTE)){ + png_ptr->color_type == PNG_COLOR_TYPE_PALETTE || + png_ptr->color_type == PNG_COLOR_TYPE_RGB_ALPHA)){ FIXME("Unsupported .PNG type: %d\n", png_ptr->color_type); ret = E_FAIL; goto pngend; -- 2.11.4.GIT