ntdll: Reserve TLS slot 0 for broken apps that compare index to 0 instead of TLS_OUT_OF_INDEXES.

Jacek Caban jacek at codeweavers.com
Fri Mar 28 07:46:17 CDT 2014


Spotted by Anastasius Focht in bug 20466. Tests are rather weak, but
they are enough to reveal the problem on Wine and I don't see how they
could be improved.

---
 dlls/kernel32/tests/thread.c | 38 ++++++++++++++++++++++++++++++++++++++
 dlls/ntdll/thread.c          |  1 +
 2 files changed, 39 insertions(+)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-ntdll-Reserve-TLS-slot-0-for-broken-apps-that-compare.diff
Type: text/x-patch
Size: 2312 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20140328/39ac79d5/attachment.bin>


More information about the wine-patches mailing list