Commit 4967d200 authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

oleacc/tests: Fix test windows cleanup.

parent 2c9fbf83
...@@ -1324,6 +1324,7 @@ static void test_AccessibleObjectFromPoint(void) ...@@ -1324,6 +1324,7 @@ static void test_AccessibleObjectFromPoint(void)
if (WindowFromPoint(point) != hwnd) if (WindowFromPoint(point) != hwnd)
{ {
win_skip("test window not returned from WindowFromPoint\n"); win_skip("test window not returned from WindowFromPoint\n");
DestroyWindow(hwnd);
return; return;
} }
...@@ -1358,6 +1359,7 @@ static void test_AccessibleObjectFromPoint(void) ...@@ -1358,6 +1359,7 @@ static void test_AccessibleObjectFromPoint(void)
if (WindowFromPoint(point) != child) if (WindowFromPoint(point) != child)
{ {
win_skip("test window not returned from WindowFromPoint\n"); win_skip("test window not returned from WindowFromPoint\n");
DestroyWindow(hwnd);
return; return;
} }
...@@ -1464,7 +1466,7 @@ static void test_CreateStdAccessibleObject_classes(void) ...@@ -1464,7 +1466,7 @@ static void test_CreateStdAccessibleObject_classes(void)
IAccessible_Release(acc); IAccessible_Release(acc);
SetWindowLongPtrW(hwnd, GWLP_WNDPROC, (LONG_PTR)win_proc); SetWindowLongPtrW(hwnd, GWLP_WNDPROC, (LONG_PTR)win_proc);
CloseWindow(hwnd); DestroyWindow(hwnd);
winetest_pop_context(); winetest_pop_context();
} }
} }
......
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