tls fix

Aric Stewart aric at codeweavers.com
Wed Oct 3 09:19:29 CDT 2001


This fix make sure that newly allocated TLS indexes are clear.

-aric
-------------- next part --------------
Index: scheduler/process.c
===================================================================
RCS file: /home/wine/wine/scheduler/process.c,v
retrieving revision 1.161
diff -u -u -r1.161 process.c
--- scheduler/process.c	2001/09/20 19:05:12	1.161
+++ scheduler/process.c	2001/10/02 18:06:30
@@ -1501,6 +1501,10 @@
     }
     for (i = 0, mask = 1; i < 32; i++, mask <<= 1) if (!(*bits & mask)) break;
     *bits |= mask;
+    /* 
+     * Clear the value
+     */
+    NtCurrentTeb()->tls_array[ret+i] = 0;
     RtlReleasePebLock();
     return ret + i;
 }


More information about the wine-patches mailing list