From: Nikolay Sivov nsivov@codeweavers.com
Signed-off-by: Nikolay Sivov nsivov@codeweavers.com --- dlls/windowscodecs/libtiff.c | 2 +- dlls/windowscodecs/tests/tiffformat.c | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-)
diff --git a/dlls/windowscodecs/libtiff.c b/dlls/windowscodecs/libtiff.c index b88ccb68b62..98ad376f431 100644 --- a/dlls/windowscodecs/libtiff.c +++ b/dlls/windowscodecs/libtiff.c @@ -782,7 +782,7 @@ static HRESULT tiff_decoder_read_tile(struct tiff_decoder *This, UINT tile_x, UI else if (info->source_bpp == 4 && info->samples == 4 && info->frame.bpp == 32) { BYTE *srcdata, *src, *dst; - DWORD x, y, count, width_bytes = (info->tile_width * 3 + 7) / 8; + DWORD x, y, count, width_bytes = (info->tile_width * 4 + 7) / 8;
count = width_bytes * info->tile_height;
diff --git a/dlls/windowscodecs/tests/tiffformat.c b/dlls/windowscodecs/tests/tiffformat.c index 2cf232429b7..e483e68ceea 100644 --- a/dlls/windowscodecs/tests/tiffformat.c +++ b/dlls/windowscodecs/tests/tiffformat.c @@ -1359,10 +1359,7 @@ static void test_tiff_4bps_bgra(void) ok(hr == S_OK, "CopyPixels error %#lx\n", hr);
for (i = 0; i < 10; i++) - { - todo_wine_if(i >= 5 && i <= 9) ok(data[i] == expected_data_5x2[i], "%u: expected %08lx, got %08lx\n", i, expected_data_5x2[i], data[i]); - }
IWICBitmapFrameDecode_Release(frame); IWICBitmapDecoder_Release(decoder);