Paul Vriens : user32: W2K3 returns ERROR_INVALID_PARAMETER.

Alexandre Julliard julliard at wine.codeweavers.com
Fri Dec 1 06:28:46 CST 2006


Module: wine
Branch: master
Commit: 93c909a3ad9a2b86ee26e645150accc3c339ecbf
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=93c909a3ad9a2b86ee26e645150accc3c339ecbf

Author: Paul Vriens <paul.vriens.wine at gmail.com>
Date:   Thu Nov 30 22:19:54 2006 +0100

user32: W2K3 returns ERROR_INVALID_PARAMETER.

---

 dlls/user32/tests/class.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/dlls/user32/tests/class.c b/dlls/user32/tests/class.c
index d3c173a..a847529 100644
--- a/dlls/user32/tests/class.c
+++ b/dlls/user32/tests/class.c
@@ -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 );




More information about the wine-cvs mailing list