[PATCH 2/2] server: Ignore low word of a class instance when looking up for a window class.
Alexandre Julliard
julliard at winehq.org
Tue Feb 18 15:26:50 CST 2020
Dmitry Timoshkov <dmitry at baikal.ru> writes:
> @@ -102,7 +102,7 @@ static struct window_class *find_class( struct process *process, atom_t atom, mo
> {
> struct window_class *class = LIST_ENTRY( ptr, struct window_class, entry );
> if (class->atom != atom) continue;
> - if (!instance || !class->local || class->instance == instance) return class;
> + if (!instance || !class->local || (class->instance & ~0xffff) == (instance & ~0xffff)) return class;
I suspect that this may cause trouble with 16-bit classes.
--
Alexandre Julliard
julliard at winehq.org
More information about the wine-devel
mailing list