user32/tests: Fix crash on Win9x/WinMe.

This commit is contained in:
Paul Vriens 2010-02-07 13:33:51 +01:00 committed by Alexandre Julliard
parent c0acfe1ead
commit 1cbedfb204
1 changed files with 10 additions and 5 deletions

View File

@ -448,11 +448,16 @@ static void test_parent_owner(void)
ok( ret == desktop, "SetParent return value %p expected %p\n", ret, desktop ); ok( ret == desktop, "SetParent return value %p expected %p\n", ret, desktop );
check_parents( test, child, child, 0, 0, hwndMain, test ); check_parents( test, child, child, 0, 0, hwndMain, test );
ShowWindow( test, SW_SHOW ); if (!is_win9x)
ret = SetParent( test, test ); {
ok( ret == NULL, "SetParent return value %p expected %p\n", ret, NULL ); ShowWindow( test, SW_SHOW );
ok( GetWindowLongA( test, GWL_STYLE ) & WS_VISIBLE, "window is not visible after SetParent\n" ); ret = SetParent( test, test );
check_parents( test, child, child, 0, 0, hwndMain, test ); ok( ret == NULL, "SetParent return value %p expected %p\n", ret, NULL );
ok( GetWindowLongA( test, GWL_STYLE ) & WS_VISIBLE, "window is not visible after SetParent\n" );
check_parents( test, child, child, 0, 0, hwndMain, test );
}
else
win_skip( "Test crashes on Win9x/WinMe\n" );
DestroyWindow( test ); DestroyWindow( test );
/* owned popup */ /* owned popup */