oleacc/tests: Fix intermittent AccessibleObjectFromPoint tests failures.

Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Piotr Caban 2022-01-05 15:19:45 +01:00 committed by Alexandre Julliard
parent 566c0653f2
commit 74ee5a2156
1 changed files with 7 additions and 1 deletions

View File

@ -1318,7 +1318,7 @@ static void test_AccessibleObjectFromPoint(void)
ok(SetWindowLongPtrA(hwnd, GWLP_WNDPROC, (LONG_PTR)&DefWindowProcA),
"SetWindowLongPtr failed\n");
point.x = point.y = 0;
point.x = point.y = 10;
ok(ClientToScreen(hwnd, &point), "ClientToScreen failed\n");
if (WindowFromPoint(point) != hwnd)
@ -1355,6 +1355,12 @@ static void test_AccessibleObjectFromPoint(void)
0, 0, 100, 100, hwnd, NULL, NULL, NULL);
ok(child != NULL, "CreateWindow failed\n");
if (WindowFromPoint(point) != child)
{
win_skip("test window not returned from WindowFromPoint\n");
return;
}
hr = AccessibleObjectFromPoint(point, &acc, &cid);
ok(hr == S_OK, "got %x\n", hr);
ok(V_VT(&cid) == VT_I4, "got %#x, expected %#x\n", V_VT(&cid), VT_I4);