summaryrefslogtreecommitdiffstats
path: root/source/compiler-core/slang-source-loc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/compiler-core/slang-source-loc.cpp')
-rw-r--r--source/compiler-core/slang-source-loc.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/source/compiler-core/slang-source-loc.cpp b/source/compiler-core/slang-source-loc.cpp
index ac6589e76..95c6f5db3 100644
--- a/source/compiler-core/slang-source-loc.cpp
+++ b/source/compiler-core/slang-source-loc.cpp
@@ -419,15 +419,15 @@ String SourceFile::calcVerbosePath() const
if (fileSystemExt)
{
- String canonicalPath;
- ComPtr<ISlangBlob> canonicalPathBlob;
- if (SLANG_SUCCEEDED(fileSystemExt->getCanonicalPath(m_pathInfo.foundPath.getBuffer(), canonicalPathBlob.writeRef())))
+ String displayPath;
+ ComPtr<ISlangBlob> displayPathBlob;
+ if (SLANG_SUCCEEDED(fileSystemExt->getPath(PathKind::Display, m_pathInfo.foundPath.getBuffer(), displayPathBlob.writeRef())))
{
- canonicalPath = StringUtil::getString(canonicalPathBlob);
+ displayPath = StringUtil::getString(displayPathBlob);
}
- if (canonicalPath.getLength() > 0)
+ if (displayPath.getLength() > 0)
{
- return canonicalPath;
+ return displayPath;
}
}