From: Yuxuan Shui yshui@codeweavers.com
We use 4*3 as the stride for GdipCreateBitmapFromScan0 in all test cases in test_CloneBitmapArea, but bmp_3x3_data_24bpp_rgb only has 9 bytes per row. GdipCreateBitmapFromScan0 also expects the stride to be a multiple of 4, so pad bmp_3x3_data_24bpp_rgb to be 12 bytes per row. --- dlls/gdiplus/tests/image.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/gdiplus/tests/image.c b/dlls/gdiplus/tests/image.c index f6d79059a59..e3602ceb505 100644 --- a/dlls/gdiplus/tests/image.c +++ b/dlls/gdiplus/tests/image.c @@ -5330,9 +5330,9 @@ static void test_CloneBitmapArea(void) 0xff,0xff,0xff,0x00, 0x80,0x80,0x80,0x00, 0x00,0x00,0x00,0x00 }; static BYTE bmp_3x3_data_24bpp_rgb[] = { - 0xff,0x00,0x00, 0x00,0xff,0x00, 0x00,0x00,0xff, - 0xff,0xff,0x00, 0x00,0xff,0xff, 0xff,0x00,0xff, - 0xff,0xff,0xff, 0x80,0x80,0x80, 0x00,0x00,0x00 + 0xff,0x00,0x00, 0x00,0xff,0x00, 0x00,0x00,0xff, 0x00,0x00,0x00, + 0xff,0xff,0x00, 0x00,0xff,0xff, 0xff,0x00,0xff, 0x00,0x00,0x00, + 0xff,0xff,0xff, 0x80,0x80,0x80, 0x00,0x00,0x00, 0x00,0x00,0x00 };
static const struct test_data {