29 Jun
2023
29 Jun
'23
3:13 p.m.
On Thu Jun 29 13:59:27 2023 +0000, Jinoh Kang wrote:
I'd say the heap allocation thing is a hack in Wine. It looks like Windows have sequence numbers for cookies instead. If we ever have an app that relies on `0` being returned on newly created threads or fibers, then we won't be able to fix the app without regressing, until all callsites that assume `0` is an invalid cookie is fixex. The cookie checks and ERRs are not useful, you can simply assume that the calls will succeed.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/2068#note_37340