Mike McCormack : user32: Add a test showing a problem in GetClassNameA.

Alexandre Julliard julliard at wine.codeweavers.com
Mon Oct 23 06:18:15 CDT 2006


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

Author: Mike McCormack <mike at codeweavers.com>
Date:   Mon Oct 23 20:41:33 2006 +0900

user32: Add a test showing a problem in GetClassNameA.

---

 dlls/user/tests/class.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/dlls/user/tests/class.c b/dlls/user/tests/class.c
index 385bb7b..5a6a979 100644
--- a/dlls/user/tests/class.c
+++ b/dlls/user/tests/class.c
@@ -300,6 +300,8 @@ static void test_instances(void)
     HINSTANCE kernel32 = GetModuleHandleA("kernel32");
     HINSTANCE user32 = GetModuleHandleA("user32");
     HINSTANCE main_module = GetModuleHandleA(NULL);
+    DWORD r;
+    char buffer[0x10];
 
     memset( &cls, 0, sizeof(cls) );
     cls.style         = CS_HREDRAW | CS_VREDRAW;
@@ -411,6 +413,10 @@ static void test_instances(void)
         "Didn't get kernel32 class for null instance\n" );
     DestroyWindow( hwnd2 );
 
+    r = GetClassName( hwnd, buffer, 4 );
+    todo_wine ok( r == 3, "return wrong\n");
+    ok( !strcmp( buffer, "__t"), "name wrong\n");
+
     ok( UnregisterClassA( name, kernel32 ), "Unregister failed for kernel32\n" );
 
     hwnd2 = CreateWindowExA( 0, name, "test_window", 0, 0, 0, 0, 0, 0, 0, NULL, 0 );




More information about the wine-cvs mailing list