oleaut32: Allow PNG_COLOR_TYPE_RGB_ALPHA.

This commit is contained in:
Evan Stade 2007-08-03 17:30:11 -07:00 committed by Alexandre Julliard
parent f1b790be06
commit 72a760beb0
1 changed files with 2 additions and 1 deletions

View File

@ -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;