Przeglądaj źródła

* Completely initialize threadvars when an external thread is detected. Needs still cleanup code (or a better thread initialization/finalization).

git-svn-id: trunk@16432 -
michael 15 lat temu
rodzic
commit
cc0be1be4d
1 zmienionych plików z 1 dodań i 0 usunięć
  1. 1 0
      rtl/win/systhrd.inc

+ 1 - 0
rtl/win/systhrd.inc

@@ -181,6 +181,7 @@ CONST
           begin
             SysAllocateThreadVars;
             dataindex:=TlsGetValue(tlskey);
+            InitThread($1000000);
           end;
         SetLastError(errorsave);
 {$endif win32}