Commit b5f17965 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

server: Use base class atom for child window enumeration.

parent e8897ebe
......@@ -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);
......
......@@ -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 )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment