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.