FIX: Plugin hangs when opening .wim archive

This commit is contained in:
Alexander Koblov 2015-04-29 19:10:32 +00:00
commit afd5d28645
2 changed files with 3 additions and 3 deletions

View file

@ -456,7 +456,6 @@ begin
Create;
FArchive:= Archive;
Archive.OnPassword:= JclCompressionPassword;
Archive.OnProgress:= JclCompressionProgress;
end;
destructor TSevenZipUpdate.Destroy;
@ -483,6 +482,7 @@ function TSevenZipUpdate.Update: Integer;
var
AllowCancel: Boolean;
begin
FArchive.OnProgress:= JclCompressionProgress;
AllowCancel:= not (FArchive is TJclUpdateArchive);
while not Terminated do
begin
@ -537,6 +537,7 @@ end;
function TSevenZipHandle.Update: Integer;
begin
FArchive.OnProgress:= JclCompressionProgress;
while not Terminated do
begin
// Wait progress event
@ -556,7 +557,6 @@ procedure TSevenZipHandle.SetArchive(AValue: TJclDecompressArchive);
begin
FArchive:= AValue;
AValue.OnPassword := JclCompressionPassword;
AValue.OnProgress := JclCompressionProgress;
AValue.OnExtract := JclCompressionExtract;
end;

View file

@ -21,7 +21,7 @@
<UseVersionInfo Value="True"/>
<MajorVersionNr Value="15"/>
<MinorVersionNr Value="4"/>
<RevisionNr Value="25"/>
<RevisionNr Value="29"/>
<CharSet Value="04B0"/>
<StringTable ProductVersion=""/>
</VersionInfo>