server: Use base class atom for child window enumeration.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
e8897ebe4e
commit
b5f179655c
|
@ -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 )
|
||||
|
|
Loading…
Reference in New Issue