+ fill the auto data segment number in the NewExe header

git-svn-id: trunk@42570 -
This commit is contained in:
nickysn 2019-08-03 00:42:56 +00:00
parent 34b3af7e92
commit 901dde5fa5

View File

@ -3660,6 +3660,8 @@ cleanup:
inherited Order_ExeSection(SecName);
TNewExeSection(CurrExeSec).ExeMetaSec:=CurrExeMetaSec;
TNewExeSection(CurrExeSec).MemBasePos:=SegNr;
if (CurrExeMetaSec=nemsData) and (Header.AutoDataSegmentNumber=0) then
Header.AutoDataSegmentNumber:=SegNr;
end;
function TNewExeOutput.WriteNewExe: boolean;