Re: user [1/2]: Add a test for CreateWindowEx
4 Aug
2006
4 Aug
'06
11:07 a.m.
Dan Hipschman <dsh(a)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(a)winehq.org
7079
Age (days ago)
7079
Last active (days ago)
0 comments
1 participants
participants (1)
-
Alexandre Julliard