Commit 908ff583 authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

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

parent f1e1ae74
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment