Browse Source

Fix ForceDirectories not using DisableFsRedir. Not caused by revert, was left like this in 4a4c5130.

Still need to figure out if this really works or not. Thought just doing SetCurrentDir was ok but now I'm not sure.
Martijn Laan 3 months ago
parent
commit
13333a63b3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Projects/Src/Compression.SevenZipDecoder.pas

+ 1 - 1
Projects/Src/Compression.SevenZipDecoder.pas

@@ -283,7 +283,7 @@ begin
   LogFmt('Extracting 7-Zip archive %s to %s. Full paths? %s', [ArchiveFileName, DestDir, SYesNo[FullPaths]]);
   LogFmt('Extracting 7-Zip archive %s to %s. Full paths? %s', [ArchiveFileName, DestDir, SYesNo[FullPaths]]);
 
 
   var SaveCurDir := GetCurrentDir;
   var SaveCurDir := GetCurrentDir;
-  if not ForceDirectories(False, DestDir) or not SetCurrentDir(DestDir) then
+  if not ForceDirectories(DisableFsRedir, DestDir) or not SetCurrentDir(DestDir) then
     raise Exception.Create(FmtSetupMessage(msgErrorExtractionFailed, ['-1']));
     raise Exception.Create(FmtSetupMessage(msgErrorExtractionFailed, ['-1']));
   try
   try
     State.DisableFsRedir := DisableFsRedir;
     State.DisableFsRedir := DisableFsRedir;