FIX: Unsafe typecast

This commit is contained in:
Alexander Koblov 2019-02-21 17:57:10 +00:00
commit ef6ced623f

View file

@ -414,11 +414,12 @@ begin
begin
if AFileSource.IsClass(TWfxPluginFileSource) then
begin
if IWfxPluginFileSource(AFileSource).WfxModule.ContentPlugin and
IWfxPluginFileSource(AFileSource).WfxModule.FileParamVSDetectStr(AFile) then
with AFileSource as IWfxPluginFileSource do
begin
Result := IWfxPluginFileSource(AFileSource).WfxModule.CallContentGetValueV(
AFile.FullPath, AFunc, AParam, 0);
if WfxModule.ContentPlugin and WfxModule.FileParamVSDetectStr(AFile) then
begin
Result := WfxModule.CallContentGetValueV(AFile.FullPath, AFunc, AParam, 0);
end;
end;
end
else if fspDirectAccess in AFileSource.Properties then