mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-18 17:19:32 +02:00
+ implemented TOmfLibObjectReader.openfile
git-svn-id: trunk@30773 -
This commit is contained in:
parent
3b56a5a767
commit
7849ffecf7
@ -426,8 +426,16 @@ implementation
|
||||
end;
|
||||
|
||||
function TOmfLibObjectReader.openfile(const fn: string): boolean;
|
||||
var
|
||||
libsym: TOmfLibDictionaryEntry;
|
||||
begin
|
||||
Result:=inherited openfile(fn);
|
||||
result:=false;
|
||||
libsym:=TOmfLibDictionaryEntry(LibSymbols.Find(ModName2DictEntry(fn)));
|
||||
if not assigned(libsym) then
|
||||
exit;
|
||||
CurrMemberPos:=libsym.PageNum*FPageSize;
|
||||
inherited Seek(CurrMemberPos);
|
||||
result:=true;
|
||||
end;
|
||||
|
||||
procedure TOmfLibObjectReader.closefile;
|
||||
|
Loading…
Reference in New Issue
Block a user