Alexandre Julliard : user32/tests: GetClassInfo doesn' t set last error reliably, remove test.
Alexandre Julliard
julliard at winehq.org
Fri Feb 13 08:59:02 CST 2009
Module: wine
Branch: master
Commit: 96e7da5c55b9ee2a98862d4a11153c1854a4b6eb
URL: http://source.winehq.org/git/wine.git/?a=commit;h=96e7da5c55b9ee2a98862d4a11153c1854a4b6eb
Author: Alexandre Julliard <julliard at winehq.org>
Date: Fri Feb 13 13:10:44 2009 +0100
user32/tests: GetClassInfo doesn't set last error reliably, remove test.
---
dlls/user32/tests/class.c | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
diff --git a/dlls/user32/tests/class.c b/dlls/user32/tests/class.c
index f2711a4..a1ae4bd 100644
--- a/dlls/user32/tests/class.c
+++ b/dlls/user32/tests/class.c
@@ -554,10 +554,7 @@ 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 ||
- GetLastError() == ERROR_INVALID_PARAMETER || /* W2K3 */
- GetLastError() == ERROR_SUCCESS /* Vista */,
- "Wrong error code %d\n", GetLastError() );
+ /* last error not set reliably */
/* we can change the instance of a system class */
check_instance( "EDIT", (HINSTANCE)0xdeadbeef, (HINSTANCE)0xdeadbeef, user32 );
More information about the wine-cvs
mailing list