mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
FIX: WCX - restore directory attributes after CloseArchive
This commit is contained in:
parent
a233c69f15
commit
c7cf06829c
1 changed files with 5 additions and 2 deletions
|
|
@ -393,12 +393,15 @@ begin
|
|||
FreeAndNil(Header);
|
||||
end;
|
||||
|
||||
if (FExtractWithoutPath = False) then SetDirsAttributes(CreatedPaths);
|
||||
|
||||
finally
|
||||
// Close archive, ignore function result, see:
|
||||
// https://www.ghisler.ch/board/viewtopic.php?p=299809#p299809
|
||||
iResult := WcxModule.CloseArchive(ArcHandle);
|
||||
// Execute after CloseArchive
|
||||
if (ExceptObject = nil) and (FExtractWithoutPath = False) then
|
||||
begin
|
||||
SetDirsAttributes(CreatedPaths);
|
||||
end;
|
||||
// Free memory
|
||||
FreeAndNil(Files);
|
||||
FreeAndNil(MaskList);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue