[PATCH] server: Use a free list for unallocated object handles.

Alexandre Julliard julliard at winehq.org
Tue Feb 1 13:54:15 CST 2022


Zebediah Figura <zfigura at codeweavers.com> writes:

> The Legend of Heroes: Trails of Cold Steel III suffers from an application bug,
> where it tries to wait on a handle after closing it. Because of the usage
> patterns of the game and the way Wine allocates handles, the handle is usually
> reused by a separate object, which is effectively never signaled, resulting in a
> hang.
>
> This patch changes our handle allocation strategy to resemble Windows, and in
> the process makes the race much less likely, although still theoretically
> possible.

Some tests would be nice.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list