gdi32/tests: Under win9x GetBitmapBits returns zero when passed a NULL buffer.

This commit is contained in:
Huw Davies 2009-03-11 10:20:03 +00:00 committed by Alexandre Julliard
parent f1e1ae7483
commit 908ff58339

View file

@ -1660,8 +1660,9 @@ static void test_GetDIBits(void)
ok(!bm.bmBits, "wrong bmBits %p\n", bm.bmBits);
bytes = GetBitmapBits(hbmp, 0, NULL);
ok(bytes == bm.bmWidthBytes * bm.bmHeight, "expected %d got %d bytes\n",
bm.bmWidthBytes * bm.bmHeight, bytes);
ok(bytes == bm.bmWidthBytes * bm.bmHeight ||
broken(bytes == 0), /* win9x */
"expected %d got %d bytes\n", bm.bmWidthBytes * bm.bmHeight, bytes);
bytes = GetBitmapBits(hbmp, sizeof(buf), buf);
ok(bytes == bm.bmWidthBytes * bm.bmHeight, "expected %d got %d bytes\n",
bm.bmWidthBytes * bm.bmHeight, bytes);