user [1/2]: Add a test for CreateWindowEx

Alexandre Julliard julliard at winehq.org
Fri Aug 4 06:07:36 CDT 2006


Dan Hipschman <dsh at linux.ucla.edu> writes:

> @@ -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 );
>  
>      /* child without parent, should fail */
> +    SetLastError(ERROR_SUCCESS);
>      test = CreateWindowExA(0, "ToolWindowClass", "Tool window 1",
>                             WS_CHILD, 0, 0, 100, 100, 0, 0, 0, NULL );
> +    todo_wine ok( GetLastError() != ERROR_SUCCESS, "CreateWindowExA should call SetLastError\n" );

0xdeadbeef is usually a better choice than ERROR_SUCCESS for that sort
of thing. Also you might as well check for the expected value instead
of only checking that it has been modified.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list