mirror of https://gitlab.com/basile.b/dexed.git
parent
e690b7434e
commit
2e0209be05
|
|
@ -638,13 +638,15 @@ begin
|
||||||
try
|
try
|
||||||
for drv := 'A' to 'Z' do
|
for drv := 'A' to 'Z' do
|
||||||
begin
|
begin
|
||||||
ltr := drv + ':\';
|
try
|
||||||
if not GetVolumeInformation(PChar(ltr), PChar(nme), 255, nil, nil, nil, nil, 0) then
|
ltr := drv + ':\';
|
||||||
continue;
|
if not GetVolumeInformation(PChar(ltr), PChar(nme), 255, nil, nil, nil, nil, 0) then
|
||||||
case GetDriveType(PChar(ltr)) of
|
continue;
|
||||||
DRIVE_REMOVABLE,
|
case GetDriveType(PChar(ltr)) of
|
||||||
DRIVE_FIXED,
|
DRIVE_REMOVABLE, DRIVE_FIXED, DRIVE_REMOTE: aList.Add(ltr);
|
||||||
DRIVE_REMOTE: aList.Add(ltr);
|
end;
|
||||||
|
except
|
||||||
|
// SEM_FAILCRITICALERRORS: exception is sent to application.
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
finally
|
finally
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue