فهرست منبع

Merge branch 'main' into files-downloadarchive

Martijn Laan 2 ماه پیش
والد
کامیت
dbd77153e7
2فایلهای تغییر یافته به همراه2 افزوده شده و 3 حذف شده
  1. 0 1
      ISHelp/isxfunc.xml
  2. 2 2
      Projects/Src/Compression.SevenZipDLLDecoder.pas

+ 0 - 1
ISHelp/isxfunc.xml

@@ -1915,7 +1915,6 @@ end;</pre></example>
 <p>The supported archive formats, beyond .7z, and the support for password-protected and multi-volume archives, depend on the <link topic="setup_archiveextraction">ArchiveExtraction</link> [Setup] section directive.</p>
 <p>To allow the extraction of archives with custom extensions, such as self-extracting archives, call <link topic="isxfunc_MapArchiveExtensions">MapArchiveExtensions</link>.</p>
 <p>Set OnExtractionProgress to a function to be informed of progress, or <tt>nil</tt> otherwise.</p>
-<p>When extracting without preserving path names (i.e. FullPaths is set to False), ensure that the archive does not contain multiple files with the same name. Doing so will help avoid file-in-use errors.</p>
 <p>See <i>CodeDownloadFiles.iss</i> for an example of archive extraction using just a [Files] entry instead.</p></description>
         <remarks><p>TOnExtractionProgress is defined as:</p>
 <p><tt>TOnExtractionProgress = function(const ArchiveName, FileName: String; const Progress, ProgressMax: Int64): Boolean;</tt></p>

+ 2 - 2
Projects/Src/Compression.SevenZipDLLDecoder.pas

@@ -145,7 +145,7 @@ type
     function GetStream(index: UInt32; out outStream: ISequentialOutStream;
       askExtractMode: Int32): HRESULT; virtual; stdcall; abstract;
     function PrepareOperation(askExtractMode: Int32): HRESULT; stdcall;
-    function SetOperationResult(opRes: TNOperationResult): HRESULT; stdcall;
+    function SetOperationResult(opRes: TNOperationResult): HRESULT; virtual; stdcall;
     { Other }
     function GetIndices: TArrayOfUInt32; virtual; abstract;
     procedure Extract;
@@ -180,7 +180,7 @@ type
     { IArchiveExtractCallback }
     function GetStream(index: UInt32; out outStream: ISequentialOutStream;
       askExtractMode: Int32): HRESULT; override; stdcall;
-    function SetOperationResult(opRes: TNOperationResult): HRESULT; stdcall;
+    function SetOperationResult(opRes: TNOperationResult): HRESULT; override; stdcall;
     { Other }
     function GetIndices: TArchiveExtractBaseCallback.TArrayOfUInt32; override;
     procedure HandleProgress; override;