|
@@ -96,6 +96,7 @@ var
|
|
|
|
|
|
const
|
|
const
|
|
TLSKey : DWord = $ffffffff; public name '_FPC_TlsKey';
|
|
TLSKey : DWord = $ffffffff; public name '_FPC_TlsKey';
|
|
|
|
+ TLSSize : DWord = 0; public name '_FPC_TlsSize';
|
|
|
|
|
|
var
|
|
var
|
|
MainThreadIdWin32 : DWORD;
|
|
MainThreadIdWin32 : DWORD;
|
|
@@ -131,6 +132,7 @@ var
|
|
if dataindex=nil then
|
|
if dataindex=nil then
|
|
RunError(226);
|
|
RunError(226);
|
|
TlsSetValue(tlskey,dataindex);
|
|
TlsSetValue(tlskey,dataindex);
|
|
|
|
+ TlsSize:=threadvarblocksize;
|
|
end;
|
|
end;
|
|
SetLastError(errorsave);
|
|
SetLastError(errorsave);
|
|
end;
|
|
end;
|