From: Gaurav Khanna Date: Thu, 20 Apr 2017 23:26:17 +0000 (-0700) Subject: Fix R2R workaround for Diasymreader (dotnet/coreclr#11116) X-Git-Tag: submit/tizen/20210909.063632~11030^2~7177 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f5d8f3a067c747c6b8fc0386c1633cf15fe3ef86;p=platform%2Fupstream%2Fdotnet%2Fruntime.git Fix R2R workaround for Diasymreader (dotnet/coreclr#11116) Commit migrated from https://github.com/dotnet/coreclr/commit/ec9976a46c9d8683a75e7f4ce6664426ecb043d7 --- diff --git a/src/coreclr/src/vm/compile.cpp b/src/coreclr/src/vm/compile.cpp index 09925cd..9161585 100644 --- a/src/coreclr/src/vm/compile.cpp +++ b/src/coreclr/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, '.');