forked from Mirrors/wine-wine
gdi32/tests: Fix test on WinME.
parent
08400e9dd7
commit
1f6f4329fd
|
@ -528,12 +528,15 @@ static void test_boundsrect_invalid(void)
|
||||||
"Expected GetBoundsRect to return 0, got %u\n", ret);
|
"Expected GetBoundsRect to return 0, got %u\n", ret);
|
||||||
|
|
||||||
ret = GetBoundsRect(hdc, &rect, 0);
|
ret = GetBoundsRect(hdc, &rect, 0);
|
||||||
ok(ret == DCB_RESET,
|
if (ret != DCB_SET) /* WinME */
|
||||||
"Expected GetBoundsRect to return DCB_RESET, got %u\n", ret);
|
{
|
||||||
SetRect(&expect, 0, 0, 0, 0);
|
ok(ret == DCB_RESET,
|
||||||
ok(EqualRect(&rect, &expect),
|
"Expected GetBoundsRect to return DCB_RESET, got %u\n", ret);
|
||||||
"Expected output rectangle (0,0)-(0,0), got (%d,%d)-(%d,%d)\n",
|
SetRect(&expect, 0, 0, 0, 0);
|
||||||
rect.left, rect.top, rect.right, rect.bottom);
|
ok(EqualRect(&rect, &expect),
|
||||||
|
"Expected output rectangle (0,0)-(0,0), got (%d,%d)-(%d,%d)\n",
|
||||||
|
rect.left, rect.top, rect.right, rect.bottom);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (GetBoundsRect(hdc, NULL, 0) == DCB_RESET)
|
if (GetBoundsRect(hdc, NULL, 0) == DCB_RESET)
|
||||||
|
|
Loading…
Reference in New Issue