* don't subtract two from the end of the stack segment when calculating the

initial SP value - seems to be wlink compatible

git-svn-id: trunk@31399 -
This commit is contained in:
nickysn 2015-08-24 20:22:01 +00:00
parent 2431b6e63b
commit 0eb1cd157a

View File

@ -2227,7 +2227,7 @@ implementation
if assigned(stackseg) then
begin
Header.InitialSS:=stackseg.MemBasePos shr 4;
Header.InitialSP:=stackseg.MemPos+stackseg.Size-stackseg.MemBasePos-2;
Header.InitialSP:=stackseg.MemPos+stackseg.Size-stackseg.MemBasePos;
end
else
begin