gdi32/tests: Win9x doesn't initialize the bitmap bits, so skip this test.
This commit is contained in:
parent
ec87dfde50
commit
246a9a6f7a
|
@ -72,7 +72,7 @@ static void test_bitmap_info(HBITMAP hbm, INT expected_depth, const BITMAPINFOHE
|
||||||
BITMAP bm;
|
BITMAP bm;
|
||||||
BITMAP bma[2];
|
BITMAP bma[2];
|
||||||
INT ret, width_bytes;
|
INT ret, width_bytes;
|
||||||
char buf[512], buf_cmp[512];
|
BYTE buf[512], buf_cmp[512];
|
||||||
DWORD gle;
|
DWORD gle;
|
||||||
|
|
||||||
ret = GetObject(hbm, sizeof(bm), &bm);
|
ret = GetObject(hbm, sizeof(bm), &bm);
|
||||||
|
@ -101,17 +101,10 @@ static void test_bitmap_info(HBITMAP hbm, INT expected_depth, const BITMAPINFOHE
|
||||||
memset(buf, 0xAA, sizeof(buf));
|
memset(buf, 0xAA, sizeof(buf));
|
||||||
ret = GetBitmapBits(hbm, sizeof(buf), buf);
|
ret = GetBitmapBits(hbm, sizeof(buf), buf);
|
||||||
ok(ret == bm.bmWidthBytes * bm.bmHeight, "%d != %d\n", ret, bm.bmWidthBytes * bm.bmHeight);
|
ok(ret == bm.bmWidthBytes * bm.bmHeight, "%d != %d\n", ret, bm.bmWidthBytes * bm.bmHeight);
|
||||||
ok(!memcmp(buf, buf_cmp, sizeof(buf)), "buffers do not match, depth %d\n", bmih->biBitCount);
|
if(bm.bmType == 21072)
|
||||||
if(memcmp(buf, buf_cmp, sizeof(buf)))
|
win_skip("win9x does not initialize the bitmap\n");
|
||||||
{
|
else
|
||||||
int i;
|
ok(!memcmp(buf, buf_cmp, sizeof(buf)), "buffers do not match, depth %d\n", bmih->biBitCount);
|
||||||
for(i = 0; i < sizeof(buf); i++)
|
|
||||||
if(buf[i] != buf_cmp[i])
|
|
||||||
{
|
|
||||||
trace("first mismatched byte %d: got %02x expected %02x\n", i, buf[i], buf_cmp[i]);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/* test various buffer sizes for GetObject */
|
/* test various buffer sizes for GetObject */
|
||||||
ret = GetObject(hbm, sizeof(*bma) * 2, bma);
|
ret = GetObject(hbm, sizeof(*bma) * 2, bma);
|
||||||
|
|
Loading…
Reference in New Issue