We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 26631e4 commit f0271d6Copy full SHA for f0271d6
src/Runtime/XSharp.Core/Functions/OS.prg
@@ -74,7 +74,10 @@ FUNCTION CurDir() AS STRING
74
LOCAL cDir AS STRING
75
LOCAL index AS INT
76
cDir := System.Environment.CurrentDirectory
77
- index := cDir:IndexOf(Path.VolumeSeparatorChar)
+ index := cDir:IndexOf(Path.VolumeSeparatorChar)
78
+ if cDir:StartsWith("\\")
79
+ return cDir
80
+ endif
81
IF index > 0
82
cDir := cDir:Substring(index+1)
83
ENDIF
0 commit comments