[PATCH 2/2] user32: Fix returned class name for other processes windows.
Alexandre Julliard
julliard at winehq.org
Mon Jun 11 04:08:51 CDT 2018
Nikolay Sivov <nsivov at codeweavers.com> writes:
> @@ -2049,6 +2049,23 @@ DECL_HANDLER(set_window_owner)
> }
>
>
> +/* get class name for a window handle */
> +DECL_HANDLER(get_class_name)
> +{
> + struct window *win = get_window( req->handle );
> + WCHAR name[256];
> + atom_t atom;
> + int len;
> +
> + if (!win) return;
> +
> + atom = win->class ? get_base_class_atom( win->class ) : DESKTOP_ATOM;
> + len = get_atom_string(atom, name, 256);
> +
> + set_reply_data( name, min( len, get_reply_max_size() ));
> +}
This should go into class.c., though I'd suggest returning the atom in
the existing set_class_info request instead.
--
Alexandre Julliard
julliard at winehq.org
More information about the wine-devel
mailing list