X-Git-Url: https://deadsoftware.ru/gitweb?p=d2df-editor.git;a=blobdiff_plain;f=src%2Fsfs%2Fsfs.pas;h=c3c74104eea81ca00bcd9e0004125e7f86272072;hp=67136e9ab0c96e900accb49a8635ba56582f1768;hb=01c9a29799525526658398f627b8be9f8f11e903;hpb=fb34967a723d0b8fb14bf0ef0522b5635ae5d8d2 diff --git a/src/sfs/sfs.pas b/src/sfs/sfs.pas index 67136e9..c3c7410 100644 --- a/src/sfs/sfs.pas +++ b/src/sfs/sfs.pas @@ -456,8 +456,7 @@ begin while f < volumes.Count do begin vi := TVolumeInfo(volumes[f]); - if vi = nil then continue; - if (not vi.fPermanent) and (vi.fOpenedFilesCount = 0) then + if (vi <> nil) and (not vi.fPermanent) and (vi.fOpenedFilesCount = 0) then begin // this volume probably can be removed used := false;