Commit 6f62f961 authored by Sebastian Lackner's avatar Sebastian Lackner Committed by Alexandre Julliard

user32/tests: Add test for EndDeferWindowPos with destroyed window.

parent a2f2de1e
......@@ -9500,6 +9500,7 @@ static void test_winproc_limit(void)
static void test_deferwindowpos(void)
{
HDWP hdwp, hdwp2;
HWND hwnd;
BOOL ret;
hdwp = BeginDeferWindowPos(0);
......@@ -9529,6 +9530,17 @@ todo_wine
ret = EndDeferWindowPos(hdwp);
ok(ret, "got %d\n", ret);
hdwp = BeginDeferWindowPos(0);
ok(hdwp != NULL, "got %p\n", hdwp);
hwnd = create_tool_window(WS_POPUP, 0);
hdwp2 = DeferWindowPos(hdwp, hwnd, NULL, 0, 0, 10, 10, 0);
ok(hdwp2 != NULL, "got %p, error %d\n", hdwp2, GetLastError());
DestroyWindow(hwnd);
ret = EndDeferWindowPos(hdwp);
todo_wine
ok(ret, "got %d\n", ret);
}
static void test_LockWindowUpdate(HWND parent)
......
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