Code cleanup

This commit is contained in:
mysticbbs 2013-02-22 20:46:48 -05:00
parent c244efdee8
commit 9aa572c41c
1 changed files with 6 additions and 2 deletions

View File

@ -52,8 +52,8 @@ Type
Procedure FindNext (Var SR : ArcSearchRec); Virtual;
Private
Hdr : ZFLocalHeader;
cHdr : ZFCentralHeader;
Hdr : ZFLocalHeader;
cHdr : ZFCentralHeader;
cFile : Word;
tFile : Word;
Procedure GetHeader (Var SR : ArcSearchRec);
@ -107,9 +107,13 @@ Begin
While Hdr.Signature = LocalSig Do Begin
Inc (tFile);
CurPos := FilePos(ArcFile) + Hdr.FNameLen + Hdr.ExtraField + Hdr.cSize;
Seek (ArcFile, CurPos);
BlockRead (ArcFile, Hdr, SizeOf(Hdr), bRead);
If bRead <> SizeOf(Hdr) Then Exit;
End;