FIX: fix the issue of mismatching to “/” when using a non-FileSystem FileSource

(cherry picked from commit 3d4dc7d6fc)
This commit is contained in:
rich2014 2026-01-07 21:54:56 +08:00 committed by Alexander Koblov
commit 6debd08913

View file

@ -6565,7 +6565,8 @@ begin
if Pos(Address, DrivesList[I]^.Path) = 1 then
Exit(I);
end
else begin
else if (DrivesList[I]^.DriveType <> dtSpecial) and Address.IsEmpty then
begin
DrivePath := UTF8UpperCase(DrivesList[I]^.Path);
DrivePathLen := UTF8Length(DrivePath);
if (DrivePathLen > LongestPathLen) and IsInPath(DrivePath, Path, True, True) then