user32: W2K3 returns ERROR_INVALID_PARAMETER.

This commit is contained in:
Paul Vriens 2006-11-30 22:19:54 +01:00 committed by Alexandre Julliard
parent 8385f137b5
commit 93c909a3ad
1 changed files with 3 additions and 1 deletions

View File

@ -542,7 +542,9 @@ static void test_instances(void)
ok( !UnregisterClass( "BUTTON", (HINSTANCE)0x87654321 ), "Unregistered button a second time\n" );
ok( GetLastError() == ERROR_CLASS_DOES_NOT_EXIST, "Wrong error code %d\n", GetLastError() );
ok( !GetClassInfo( 0, "BUTTON", &wc ), "Button still exists\n" );
ok( GetLastError() == ERROR_CLASS_DOES_NOT_EXIST, "Wrong error code %d\n", GetLastError() );
ok( GetLastError() == ERROR_CLASS_DOES_NOT_EXIST ||
GetLastError() == ERROR_INVALID_PARAMETER /* W2K3 */,
"Wrong error code %d\n", GetLastError() );
/* we can change the instance of a system class */
check_instance( "EDIT", (HINSTANCE)0xdeadbeef, (HINSTANCE)0xdeadbeef, user32 );