Increment index by 1 as indexOf is inclusive when searching for dotnet.exe (#589)

This commit is contained in:
Justin Kotalik 2018-02-14 15:28:15 -08:00 committed by GitHub
parent ccf2529f6c
commit 4ca45d951f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -616,7 +616,7 @@ HOSTFXR_UTILITY::FindDotnetExePath(
{
goto Finished;
}
prevIndex = index;
prevIndex = index + 1;
if (GetBinaryTypeW(struDotnetSubstring.QueryStr(), &dwBinaryType) &&
fIsCurrentProcess64Bit == (dwBinaryType == SCS_64BIT_BINARY)) {