From 4ca45d951f5f3e901d89e72a9cc5d12d93e23deb Mon Sep 17 00:00:00 2001 From: Justin Kotalik Date: Wed, 14 Feb 2018 15:28:15 -0800 Subject: [PATCH] Increment index by 1 as indexOf is inclusive when searching for dotnet.exe (#589) --- src/CommonLib/hostfxr_utility.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CommonLib/hostfxr_utility.cpp b/src/CommonLib/hostfxr_utility.cpp index d346f7044c..9e2c1a0e31 100644 --- a/src/CommonLib/hostfxr_utility.cpp +++ b/src/CommonLib/hostfxr_utility.cpp @@ -616,7 +616,7 @@ HOSTFXR_UTILITY::FindDotnetExePath( { goto Finished; } - prevIndex = index; + prevIndex = index + 1; if (GetBinaryTypeW(struDotnetSubstring.QueryStr(), &dwBinaryType) && fIsCurrentProcess64Bit == (dwBinaryType == SCS_64BIT_BINARY)) {