Skip to content

Tweaks to systhrd.inc.

Rika requested to merge runewalsh/source:systhrd into main
  1. Remove traces of Windows 95 support.

  2. Remove traces of Windows 3.1 support as well: use HeapAlloc instead of LocalAlloc.

  3. Change if Length(Name) = 0 then n := nil else n := PAnsiChar(Name); to the more compact pointer(Name).

  4. SetThreadStackGuarantee had wrong signature and was used in the wrong way: its argument is PULONG which is PUint32, and it writes the old guarantee to the same place, which means it shouldn’t be called directly on the global variable StackMargin.

Merge request reports