DEADSOFTWARE

Fix locks again
[d2df-editor.git] / src / sfs / sfs.pas
index 67136e9ab0c96e900accb49a8635ba56582f1768..c3c74104eea81ca00bcd9e0004125e7f86272072 100644 (file)
@@ -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;