Commit 50486859 authored by Dan Hipschman's avatar Dan Hipschman Committed by Alexandre Julliard

user: Add a test for CreateWindowEx.

parent 121f9c7e
...@@ -137,8 +137,10 @@ static void test_parent_owner(void) ...@@ -137,8 +137,10 @@ static void test_parent_owner(void)
trace( "main window %p main2 %p desktop %p child %p\n", hwndMain, hwndMain2, desktop, child ); trace( "main window %p main2 %p desktop %p child %p\n", hwndMain, hwndMain2, desktop, child );
/* child without parent, should fail */ /* child without parent, should fail */
SetLastError(0xdeadbeef);
test = CreateWindowExA(0, "ToolWindowClass", "Tool window 1", test = CreateWindowExA(0, "ToolWindowClass", "Tool window 1",
WS_CHILD, 0, 0, 100, 100, 0, 0, 0, NULL ); WS_CHILD, 0, 0, 100, 100, 0, 0, 0, NULL );
todo_wine ok( GetLastError() == ERROR_TLW_WITH_WSCHILD, "CreateWindowExA should call SetLastError\n" );
ok( !test, "WS_CHILD without parent created\n" ); ok( !test, "WS_CHILD without parent created\n" );
/* desktop window */ /* desktop window */
......
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