Selaa lähdekoodia

Files with the same name except for a letter case are sorted deterministically

Source commit: cce181391a149efe4c91df0027b5af7617b6416d
Martin Prikryl 5 vuotta sitten
vanhempi
sitoutus
62277eb914
1 muutettua tiedostoa jossa 3 lisäystä ja 0 poistoa
  1. 3 0
      source/packages/filemng/CustomDirView.pas

+ 3 - 0
source/packages/filemng/CustomDirView.pas

@@ -675,6 +675,9 @@ begin
     Result := StrCmpLogicalW(PChar(S1), PChar(S2))
   else
     Result := lstrcmpi(PChar(S1), PChar(S2));
+  // For deterministics results
+  if Result = 0 then
+    Result := lstrcmp(PChar(S1), PChar(S2));
 end;
 
 { Shortcut-handling }