Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit ec9976a

Browse files
authored
Fix R2R workaround for Diasymreader (#11116)
1 parent 91b84a6 commit ec9976a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/vm/compile.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3140,8 +3140,8 @@ HRESULT NGenModulePdbWriter::WritePDBData()
31403140
SString dllPath = pLoadedLayout->GetPath();
31413141
if (!dllPath.EndsWithCaseInsensitive(L".ni.dll") && !dllPath.EndsWithCaseInsensitive(L".ni.exe"))
31423142
{
3143-
SString::Iterator fileNameStart = dllPath.Begin();
3144-
dllPath.FindBack(fileNameStart, '\\');
3143+
SString::Iterator fileNameStart = dllPath.End();
3144+
dllPath.FindBack(fileNameStart, DIRECTORY_SEPARATOR_STR_W);
31453145

31463146
SString::Iterator ext = dllPath.End();
31473147
dllPath.FindBack(ext, '.');

0 commit comments

Comments
 (0)