mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
FIX: Don't expand a virtual path under Windows
(cherry picked from commit 70262a35d4)
This commit is contained in:
parent
4e2506d9f2
commit
c7bc5e6392
1 changed files with 6 additions and 1 deletions
|
|
@ -357,14 +357,19 @@ begin
|
|||
end;
|
||||
|
||||
function mbExpandFileName(const sFileName: String): String;
|
||||
const
|
||||
PATH_DELIM_POS = {$IFDEF MSWINDOWS}1{$ELSE}0{$ENDIF};
|
||||
begin
|
||||
if (Pos('://', sFileName) > 2) then
|
||||
Result:= sFileName
|
||||
else begin
|
||||
Result:= NormalizePathDelimiters(sFileName);
|
||||
Result:= ReplaceEnvVars(Result);
|
||||
if Pos(PathDelim, Result) <> 0 then
|
||||
|
||||
if Pos(PathDelim, Result) > PATH_DELIM_POS then
|
||||
begin
|
||||
Result:= ExpandFileName(Result);
|
||||
end;
|
||||
|
||||
{$IF DEFINED(MSWINDOWS)}
|
||||
// Remove double backslash '\\' after calling 'ExpandFileName'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue