Explorar el Código

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

(cherry picked from commit 62277eb914792c1b945ac923d587eeab4f8f1b70)

Source commit: 7f88b316a2e9e6062a07a66f112c2679eb460213
Martin Prikryl hace 5 años
padre
commit
3859e04d7b
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  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 }