mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
UPD: local hard disks come before removable hard disk when sorting
This commit is contained in:
parent
876d0d2333
commit
5b418b05bc
1 changed files with 9 additions and 2 deletions
|
|
@ -4965,8 +4965,15 @@ begin
|
|||
end;
|
||||
|
||||
function CompareDrives(Item1, Item2: Pointer): Integer;
|
||||
var
|
||||
driver1: PDrive absolute Item1;
|
||||
driver2: PDrive absolute Item2;
|
||||
begin
|
||||
Result := CompareText(PDrive(Item1)^.DisplayName, PDrive(Item2)^.DisplayName);
|
||||
if driver1^.Path = PathDelim then
|
||||
Exit(-1);
|
||||
if driver2^.Path = PathDelim then
|
||||
Exit(1);
|
||||
Result := CompareText(driver1^.DisplayName, driver2^.DisplayName);
|
||||
end;
|
||||
|
||||
procedure TfrmMain.UpdateDiskCount;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue