mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-08 02:27:56 +02:00
convert lfnstrs to array of ansichar
This commit is contained in:
parent
859b100da6
commit
4652593a8c
@ -64,7 +64,7 @@ type
|
||||
tarobjectreader=class(tobjectreader)
|
||||
private
|
||||
ArSymbols : TFPHashObjectList;
|
||||
LFNStrs : PChar;
|
||||
LFNStrs : TAnsiCharDynArray;
|
||||
LFNSize : longint;
|
||||
CurrMemberPos,
|
||||
CurrMemberSize : longint;
|
||||
@ -353,8 +353,7 @@ implementation
|
||||
begin
|
||||
inherited closefile;
|
||||
ArSymbols.Free;
|
||||
if assigned(LFNStrs) then
|
||||
FreeMem(LFNStrs);
|
||||
LFNStrs:=nil;
|
||||
inherited Destroy;
|
||||
end;
|
||||
|
||||
@ -515,8 +514,8 @@ implementation
|
||||
if DecodeMemberName(currarhdr)='/' then
|
||||
begin
|
||||
lfnsize:=DecodeMemberSize(currarhdr);
|
||||
getmem(lfnstrs,lfnsize);
|
||||
Read(lfnstrs^,lfnsize);
|
||||
setLength(lfnstrs,lfnsize);
|
||||
Read(lfnstrs[0],lfnsize);
|
||||
end;
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user