Ver código fonte

Merge branch 'main' into files-downloadarchive

Martijn Laan 2 meses atrás
pai
commit
dbd77153e7

+ 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>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>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>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>
 <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>
         <remarks><p>TOnExtractionProgress is defined as:</p>
 <p><tt>TOnExtractionProgress = function(const ArchiveName, FileName: String; const Progress, ProgressMax: Int64): Boolean;</tt></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;
     function GetStream(index: UInt32; out outStream: ISequentialOutStream;
       askExtractMode: Int32): HRESULT; virtual; stdcall; abstract;
       askExtractMode: Int32): HRESULT; virtual; stdcall; abstract;
     function PrepareOperation(askExtractMode: Int32): HRESULT; stdcall;
     function PrepareOperation(askExtractMode: Int32): HRESULT; stdcall;
-    function SetOperationResult(opRes: TNOperationResult): HRESULT; stdcall;
+    function SetOperationResult(opRes: TNOperationResult): HRESULT; virtual; stdcall;
     { Other }
     { Other }
     function GetIndices: TArrayOfUInt32; virtual; abstract;
     function GetIndices: TArrayOfUInt32; virtual; abstract;
     procedure Extract;
     procedure Extract;
@@ -180,7 +180,7 @@ type
     { IArchiveExtractCallback }
     { IArchiveExtractCallback }
     function GetStream(index: UInt32; out outStream: ISequentialOutStream;
     function GetStream(index: UInt32; out outStream: ISequentialOutStream;
       askExtractMode: Int32): HRESULT; override; stdcall;
       askExtractMode: Int32): HRESULT; override; stdcall;
-    function SetOperationResult(opRes: TNOperationResult): HRESULT; stdcall;
+    function SetOperationResult(opRes: TNOperationResult): HRESULT; override; stdcall;
     { Other }
     { Other }
     function GetIndices: TArchiveExtractBaseCallback.TArrayOfUInt32; override;
     function GetIndices: TArchiveExtractBaseCallback.TArrayOfUInt32; override;
     procedure HandleProgress; override;
     procedure HandleProgress; override;