Skip to content

Commit b63ee6a

Browse files
committed
Fixes...
1 parent b670fcd commit b63ee6a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

PluginCore/PluginCore/Helpers/PathHelper.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -386,9 +386,9 @@ public static String FindFromProgramFiles(String partialPath)
386386
String programFiles = Environment.GetEnvironmentVariable("ProgramFiles");
387387
String toolPath = Path.Combine(programFiles, partialPath);
388388
if (File.Exists(toolPath)) return toolPath;
389-
if (toolPath.Contains(" Files (x86)")) // Is the app in x64 program files?
389+
if (programFiles.Contains(" (x86)")) // Is the app in x64 program files?
390390
{
391-
toolPath = Path.Combine(programFiles.Replace(" Files (x86)", " Files"), partialPath);
391+
toolPath = Path.Combine(programFiles.Replace(" (x86)", ""), partialPath);
392392
if (File.Exists(toolPath)) return toolPath;
393393
}
394394
return String.Empty;

0 commit comments

Comments
 (0)