mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-28 10:02:14 +00:00
FIX: Bug [0001269] "Access violation when trying to open certain zip file"
This commit is contained in:
parent
a441cd3201
commit
ee49ea17c0
1 changed files with 1 additions and 1 deletions
|
|
@ -659,7 +659,7 @@ begin
|
|||
// And not set directory attribute. So delete path
|
||||
// delimiter if present and add directory attribute.
|
||||
NameLength := Length(Header.FileName);
|
||||
if (Header.FileName[NameLength] = PathDelim) then
|
||||
if (NameLength > 0) and (Header.FileName[NameLength] = PathDelim) then
|
||||
begin
|
||||
Delete(Header.FileName, NameLength, 1);
|
||||
Header.FileAttr := Header.FileAttr or faFolder;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue