[PATCH 2/2] server: Use base class atom for child window enumeration.

Nikolay Sivov nsivov at codeweavers.com
Mon Nov 19 07:08:47 CST 2018


Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
---
 dlls/user32/tests/class.c | 4 ----
 server/class.c            | 2 +-
 2 files changed, 1 insertion(+), 5 deletions(-)

diff --git a/dlls/user32/tests/class.c b/dlls/user32/tests/class.c
index 6c5850f141..d6910d982d 100644
--- a/dlls/user32/tests/class.c
+++ b/dlls/user32/tests/class.c
@@ -1354,11 +1354,9 @@ static void test_actctx_classes(void)
     ok(hwnd != NULL, "Failed to create a window.\n");
 
     hwnd2 = FindWindowExA(NULL, NULL, "MyTestClass", NULL);
-todo_wine
     ok(hwnd2 == hwnd, "Failed to find test window.\n");
 
     hwnd2 = FindWindowExA(NULL, NULL, "4.3.2.1!MyTestClass", NULL);
-todo_wine
     ok(hwnd2 == NULL, "Unexpected find result %p.\n", hwnd2);
 
     ret = GetClassNameA(hwnd, buff, sizeof(buff));
@@ -1390,11 +1388,9 @@ todo_wine
     ok(hwnd != NULL, "Failed to create a window.\n");
 
     hwnd2 = FindWindowExA(NULL, NULL, "MyTestClass", NULL);
-todo_wine
     ok(hwnd2 == hwnd, "Failed to find test window.\n");
 
     hwnd2 = FindWindowExA(NULL, NULL, "4.3.2.1!MyTestClass", NULL);
-todo_wine
     ok(hwnd2 == NULL, "Unexpected find result %p.\n", hwnd2);
 
     DestroyWindow(hwnd);
diff --git a/server/class.c b/server/class.c
index 6a7de7843e..403180db79 100644
--- a/server/class.c
+++ b/server/class.c
@@ -139,7 +139,7 @@ int is_hwnd_message_class( struct window_class *class )
 
 atom_t get_class_atom( struct window_class *class )
 {
-    return class->atom;
+    return class->base_atom;
 }
 
 client_ptr_t get_class_client_ptr( struct window_class *class )
-- 
2.19.1




More information about the wine-devel mailing list