21 Mar
2024
21 Mar
'24
9:14 p.m.
If I am missing something and there is some rationale under keeping MakeCriticalSectionGlobal with semaphore creation around, another way to fix that is probably use the fact that valid handles are multiples of 4 while for fast path LockSemaphore can only be 0 or 1, and distinguish whether the semaphore is used by LockSemaphore value. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/5379#note_65697