diff options
Diffstat (limited to 'UCore.pas')
| -rw-r--r-- | UCore.pas | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -520,11 +520,16 @@ end; function GetFileInfoSL(Engine: TPanelEngine; const APath: string): PDataItemSL; var ItemSL: PDataItemSL; + DataItem: PDataItem; begin + Result := nil; + DataItem := Engine.GetFileInfo(APath, False, True, nil); + if DataItem = nil then Exit; // Inaccessible file + ItemSL := malloc(sizeof(TDataItemSL)); memset(ItemSL, 0, sizeof(TDataItemSL)); // * TODO: report errors? same way as for FillDirFiles - ItemSL^.DataItem := Engine.GetFileInfo(APath, False, True, nil); + ItemSL^.DataItem := DataItem; ItemSL^.Stage1 := True; ItemSL^.Level := 1; Result := ItemSL; |
