mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-28 10:02:14 +00:00
ADD: try..except to GetAllDrives function under Linux
This commit is contained in:
parent
d78beee237
commit
ed72bf509d
1 changed files with 3 additions and 1 deletions
|
|
@ -737,7 +737,7 @@ var
|
|||
begin
|
||||
Result := TList.Create;
|
||||
for I:= Low(MntEntFileList) to High(MntEntFileList) do
|
||||
begin
|
||||
try
|
||||
fstab:= setmntent(MntEntFileList[I],'r');
|
||||
if not Assigned(fstab) then exit;
|
||||
pme:= getmntent(fstab);
|
||||
|
|
@ -765,6 +765,8 @@ begin
|
|||
pme:= getmntent(fstab);
|
||||
end;
|
||||
endmntent(fstab);
|
||||
except
|
||||
DebugLn('Error with ', MntEntFileList[I]);
|
||||
end;
|
||||
end;
|
||||
{$ENDIF}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue