1
0
mirror of https://github.com/winscp/winscp.git synced 2026-10-24 02:28:55 +03:00

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

Source commit: cce181391a149efe4c91df0027b5af7617b6416d
This commit is contained in:
Martin Prikryl
2020-07-21 15:51:56 +00:00
parent 09451a11f0
commit 62277eb914

View File

@@ -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 }