https://bugs.winehq.org/show_bug.cgi?id=54539
Zeb Figura z.figura12@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |etang@codeweavers.com Regression SHA1| |a30a5287f06ccf56a1d7184e8c2 | |2ea9e79e9efaf
--- Comment #3 from Zeb Figura z.figura12@gmail.com --- commit a30a5287f06ccf56a1d7184e8c22ea9e79e9efaf Author: Evan Tang etang@codeweavers.com Date: Mon Nov 28 14:54:41 2022 -0600
ntdll: TlsIndex should not actually contain tls indices.
It actually contains a -1 if the module has a tls slot and a 0 if it doesn't. Putting tls indices in it breaks initialization of the D runtime if a D dll is loaded into a tls-free exe and gets assigned tls slot 0, as it makes the D runtime think the OS hasn't initialized a tls slot:
https://github.com/dlang/dmd/blob/6bf60ea0eb174631ede0074a77d3898d943e0b30/d...