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

Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Sebastian Lackner 2017-02-16 21:59:15 +01:00 committed by Alexandre Julliard
parent a2f2de1e96
commit 6f62f9614d
1 changed files with 12 additions and 0 deletions

View File

@ -9500,6 +9500,7 @@ static void test_winproc_limit(void)
static void test_deferwindowpos(void) static void test_deferwindowpos(void)
{ {
HDWP hdwp, hdwp2; HDWP hdwp, hdwp2;
HWND hwnd;
BOOL ret; BOOL ret;
hdwp = BeginDeferWindowPos(0); hdwp = BeginDeferWindowPos(0);
@ -9529,6 +9530,17 @@ todo_wine
ret = EndDeferWindowPos(hdwp); ret = EndDeferWindowPos(hdwp);
ok(ret, "got %d\n", ret); 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) static void test_LockWindowUpdate(HWND parent)