http://bugs.winehq.org/show_bug.cgi?id=20466
Andrew Emery aemery777@icloud.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |aemery777@icloud.com
--- Comment #28 from Andrew Emery aemery777@icloud.com ---
Either slot indexes that are allocated/exposed by TlsXXX API must start at non-zero values -> ntdll change, keeping index zero 'reserved' (with zero init value!).
A quick hack that also seems to be sufficient for the game is to 'steal' index zero for any further public allocation during process startup -> kernel32 ('singleton' TlsAlloc in process attach) before any higher level Wine builtins can grab it.
Hi Anastasius. Thanks for taking the time to figure this out. This is all new to me and I have never even heard of TLS. After reading the post 3 or 4 times my understanding is I need to "free up" the TLS index slot zero. Right? How do you change a TLS index value? Or how do you steal the zero index?