Nikolay Sivov : server: Use base class atom for child window enumeration.
Alexandre Julliard
julliard at winehq.org
Mon Nov 19 15:59:38 CST 2018
Module: wine
Branch: master
Commit: b5f179655ca8eacdb6ed9b4471bf55362789c1e9
URL: https://source.winehq.org/git/wine.git/?a=commit;h=b5f179655ca8eacdb6ed9b4471bf55362789c1e9
Author: Nikolay Sivov <nsivov at codeweavers.com>
Date: Mon Nov 19 16:08:47 2018 +0300
server: Use base class atom for child window enumeration.
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
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 6c5850f..d6910d9 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 6a7de78..403180d 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 )
More information about the wine-cvs
mailing list