* partial fix for Win64 (CoffSymbol not resolved yet - is it equal in PE32 and PE32PLUS?)

git-svn-id: trunk@9806 -
This commit is contained in:
Tomas Hajny 2008-01-20 11:49:41 +00:00
parent c743711f40
commit 00b342301a

View File

@ -518,11 +518,11 @@ var
begin
result:=false;
{ read and check header }
if filesize(f)<sizeof(dosheader) then
if E.Size<sizeof(dosheader) then
exit;
blockread(f,dosheader,sizeof(tdosheader));
seek(f,dosheader.e_lfanew);
blockread(f,peheader,sizeof(tpeheader));
blockread(E.F,dosheader,sizeof(tdosheader));
seek(E.F,dosheader.e_lfanew);
blockread(E.F,peheader,sizeof(tpeheader));
if peheader.pemagic<>$4550 then
exit;
e.sechdrofs:=filepos(e.f);