mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-28 10:02:14 +00:00
FIX: Bug [0002241] WFX plugins Access violation
This commit is contained in:
parent
0607813b62
commit
6f1d329aaa
1 changed files with 10 additions and 7 deletions
|
|
@ -618,15 +618,18 @@ var
|
|||
AProp: TFilePropertyType;
|
||||
AVariant: TFileVariantProperty;
|
||||
begin
|
||||
PropertiesToSet:= PropertiesToSet * fpVariantAll;
|
||||
for AProp in PropertiesToSet do
|
||||
if WfxModule.ContentPlugin then
|
||||
begin
|
||||
AIndex:= Ord(AProp) - Ord(fpVariant);
|
||||
if (AIndex >= 0) and (AIndex <= High(AVariantProperties)) then
|
||||
PropertiesToSet:= PropertiesToSet * fpVariantAll;
|
||||
for AProp in PropertiesToSet do
|
||||
begin
|
||||
AVariant:= TFileVariantProperty.Create(AVariantProperties[AIndex]);
|
||||
AVariant.Value:= GetVariantFileProperty(AVariantProperties[AIndex], AFile, Self);
|
||||
AFile.Properties[AProp]:= AVariant;
|
||||
AIndex:= Ord(AProp) - Ord(fpVariant);
|
||||
if (AIndex >= 0) and (AIndex <= High(AVariantProperties)) then
|
||||
begin
|
||||
AVariant:= TFileVariantProperty.Create(AVariantProperties[AIndex]);
|
||||
AVariant.Value:= GetVariantFileProperty(AVariantProperties[AIndex], AFile, Self);
|
||||
AFile.Properties[AProp]:= AVariant;
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue