Tweaks to systhrd.inc.
-
Remove traces of Windows 95 support.
-
Remove traces of Windows 3.1 support as well: use
HeapAlloc
instead ofLocalAlloc
. -
Change
if Length(Name) = 0 then n := nil else n := PAnsiChar(Name);
to the more compactpointer(Name)
. -
SetThreadStackGuarantee
had wrong signature and was used in the wrong way: its argument isPULONG
which isPUint32
, and it writes the old guarantee to the same place, which means it shouldn’t be called directly on the global variableStackMargin
.