|
@@ -694,6 +694,11 @@ begin
|
|
else GetFileHandleCount := L2;
|
|
else GetFileHandleCount := L2;
|
|
end;
|
|
end;
|
|
|
|
|
|
|
|
+function CheckInitialStkLen (StkLen: SizeUInt): SizeUInt;
|
|
|
|
+begin
|
|
|
|
+ CheckInitialStkLen := StkLen;
|
|
|
|
+end;
|
|
|
|
+
|
|
var TIB: PThreadInfoBlock;
|
|
var TIB: PThreadInfoBlock;
|
|
RC: cardinal;
|
|
RC: cardinal;
|
|
ErrStr: string;
|
|
ErrStr: string;
|
|
@@ -707,6 +712,7 @@ begin
|
|
DosGetInfoBlocks (@TIB, @PIB);
|
|
DosGetInfoBlocks (@TIB, @PIB);
|
|
StackBottom := TIB^.Stack;
|
|
StackBottom := TIB^.Stack;
|
|
StackTop := PtrUInt (TIB^.StackLimit);
|
|
StackTop := PtrUInt (TIB^.StackLimit);
|
|
|
|
+ StackLength := CheckInitialStkLen (InitialStkLen);
|
|
|
|
|
|
{Set type of application}
|
|
{Set type of application}
|
|
ApplicationType := PIB^.ProcType;
|
|
ApplicationType := PIB^.ProcType;
|