X-Git-Url: http://deadsoftware.ru/gitweb?p=d2df-sdl.git;a=blobdiff_plain;f=src%2Fsfs%2Fsfs.pas;h=11e1045459cc1e894c28a9f35aa20f0e4bf6aafc;hp=5e5c0d258237d2e0cbcd84e0171aaaddf9931b98;hb=4ac9e03116045cb5db2bcfc3d93b975817c1d84e;hpb=e15c1a3fdffa2c601500394b08b0afbc494fc706 diff --git a/src/sfs/sfs.pas b/src/sfs/sfs.pas index 5e5c0d2..11e1045 100644 --- a/src/sfs/sfs.pas +++ b/src/sfs/sfs.pas @@ -455,8 +455,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;