gdi32/tests: Under win9x GetBitmapBits returns zero when passed a NULL buffer.
This commit is contained in:
parent
f1e1ae7483
commit
908ff58339
@ -1660,8 +1660,9 @@ static void test_GetDIBits(void)
|
|||||||
ok(!bm.bmBits, "wrong bmBits %p\n", bm.bmBits);
|
ok(!bm.bmBits, "wrong bmBits %p\n", bm.bmBits);
|
||||||
|
|
||||||
bytes = GetBitmapBits(hbmp, 0, NULL);
|
bytes = GetBitmapBits(hbmp, 0, NULL);
|
||||||
ok(bytes == bm.bmWidthBytes * bm.bmHeight, "expected %d got %d bytes\n",
|
ok(bytes == bm.bmWidthBytes * bm.bmHeight ||
|
||||||
bm.bmWidthBytes * bm.bmHeight, bytes);
|
broken(bytes == 0), /* win9x */
|
||||||
|
"expected %d got %d bytes\n", bm.bmWidthBytes * bm.bmHeight, bytes);
|
||||||
bytes = GetBitmapBits(hbmp, sizeof(buf), buf);
|
bytes = GetBitmapBits(hbmp, sizeof(buf), buf);
|
||||||
ok(bytes == bm.bmWidthBytes * bm.bmHeight, "expected %d got %d bytes\n",
|
ok(bytes == bm.bmWidthBytes * bm.bmHeight, "expected %d got %d bytes\n",
|
||||||
bm.bmWidthBytes * bm.bmHeight, bytes);
|
bm.bmWidthBytes * bm.bmHeight, bytes);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user