mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-17 17:49:13 +02:00
* use the provided constant instead of hardcoded value
git-svn-id: trunk@10758 -
This commit is contained in:
parent
88597d23c5
commit
203e19782f
@ -366,7 +366,7 @@ begin
|
|||||||
begin
|
begin
|
||||||
E.ImgOffset := DosHeader.e_cp * ParagraphSize;
|
E.ImgOffset := DosHeader.e_cp * ParagraphSize;
|
||||||
if DosHeader.e_cblp > 0 then
|
if DosHeader.e_cblp > 0 then
|
||||||
E.ImgOffset := E.ImgOffset + DosHeader.e_cblp - 512;
|
E.ImgOffset := E.ImgOffset + DosHeader.e_cblp - ParagraphSize;
|
||||||
end;
|
end;
|
||||||
if e.size < E.ImgOffset + sizeof(coffheader) then
|
if e.size < E.ImgOffset + sizeof(coffheader) then
|
||||||
exit;
|
exit;
|
||||||
|
Loading…
Reference in New Issue
Block a user