[PATCH v2] quartz: Change reference increasing method to avoid unintended DLL unloading.

Alexandre Julliard julliard at winehq.org
Thu Aug 19 13:38:16 CDT 2021


Hiroki Awata <castaneai at by.black> writes:

> Incrementing object_locks by DSCF_CreateInstance is sometimes
> wrong. For example, dsound_render_create creates two instances because
> it calls system_clock_create internally, but object_locks is only
> increased by 1.  Each create function should increase the object_locks
> instead of DSCF_CreateInstance.

In general getting the lock count right is tricky and error-prone, and
not very useful. You can simply return FALSE from DllCanUnloadNow().

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list