Sebastian Lackner : user32/tests: Add test for EndDeferWindowPos with destroyed window.
Alexandre Julliard
julliard at winehq.org
Fri Feb 17 14:37:10 CST 2017
Module: wine
Branch: master
Commit: 6f62f9614d8e1f6a37bd359131d51f78dd7a7c36
URL: http://source.winehq.org/git/wine.git/?a=commit;h=6f62f9614d8e1f6a37bd359131d51f78dd7a7c36
Author: Sebastian Lackner <sebastian at fds-team.de>
Date: Thu Feb 16 21:59:15 2017 +0100
user32/tests: Add test for EndDeferWindowPos with destroyed window.
Signed-off-by: Sebastian Lackner <sebastian at fds-team.de>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/user32/tests/win.c | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/dlls/user32/tests/win.c b/dlls/user32/tests/win.c
index 992bffb..0046c7c 100644
--- a/dlls/user32/tests/win.c
+++ b/dlls/user32/tests/win.c
@@ -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)
More information about the wine-cvs
mailing list