Nikolay Sivov nsivov@codeweavers.com wrote:
-static void check_bitmap_format(IStream *stream, const CLSID *encoder, const WICPixelFormatGUID *format) +static void check_bitmap_format(IStream *stream, const CLSID *encoder, const struct bitmap_data *dst) { HRESULT hr; LARGE_INTEGER pos; @@ -732,11 +783,11 @@ static void check_bitmap_format(IStream *stream, const CLSID *encoder, const WIC ok(hr == S_OK, "IStream_Seek error %#x\n", hr);
if (IsEqualGUID(encoder, &CLSID_WICPngEncoder))
check_png_format(stream, format);
else if (IsEqualGUID(encoder, &CLSID_WICBmpEncoder))check_png_format(stream, dst->format);
check_bmp_format(stream, format);
else if (IsEqualGUID(encoder, &CLSID_WICTiffEncoder))check_bmp_format(stream, dst);
check_tiff_format(stream, format);
else ok(0, "unknown encoder %s\n", wine_dbgstr_guid(encoder));check_tiff_format(stream, dst->format);
It's commendable that you are trying to not copy and paste the patches from wine-staging, however you are intentionally breaking an original idea to make check_png_format/check_bmp_format/etc. helpers test only format related things (like a header) and leave everything else (pixel data and palette) to be hanlded by common code. That's unacceptable.