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:
parent
a2f2de1e96
commit
6f62f9614d
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue