19 Aug
2021
19 Aug
'21
6:38 p.m.
Hiroki Awata <castaneai(a)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(a)winehq.org