summaryrefslogtreecommitdiff
path: root/src/vm/compile.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/vm/compile.cpp')
-rw-r--r--src/vm/compile.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vm/compile.cpp b/src/vm/compile.cpp
index 09925cd219..91615851c7 100644
--- a/src/vm/compile.cpp
+++ b/src/vm/compile.cpp
@@ -3140,8 +3140,8 @@ HRESULT NGenModulePdbWriter::WritePDBData()
SString dllPath = pLoadedLayout->GetPath();
if (!dllPath.EndsWithCaseInsensitive(L".ni.dll") && !dllPath.EndsWithCaseInsensitive(L".ni.exe"))
{
- SString::Iterator fileNameStart = dllPath.Begin();
- dllPath.FindBack(fileNameStart, '\\');
+ SString::Iterator fileNameStart = dllPath.End();
+ dllPath.FindBack(fileNameStart, DIRECTORY_SEPARATOR_STR_W);
SString::Iterator ext = dllPath.End();
dllPath.FindBack(ext, '.');