mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
UPD: Don't read pieces
This commit is contained in:
parent
07465d5bd3
commit
b119febc6d
1 changed files with 2 additions and 0 deletions
|
|
@ -194,6 +194,7 @@ begin
|
|||
end else begin
|
||||
_Err.Add('Corrupt File: Missing "info.piece length" segment');
|
||||
end;
|
||||
{
|
||||
if(info.Exists('pieces')) then begin
|
||||
fp := (info['pieces'] as TIntString).StringPart;
|
||||
pcount := System.Length(fp) div 20;
|
||||
|
|
@ -205,6 +206,7 @@ begin
|
|||
end else begin
|
||||
_Err.Add('Corrupt File: Missing "info.pieces" segment');
|
||||
end;
|
||||
}
|
||||
if(info.Exists('length')) then begin // single-file archive
|
||||
sz := (info['length'] as TIntString).IntPart;
|
||||
_Count := 1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue