File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
PluginCore/PluginCore/Helpers Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -386,9 +386,9 @@ public static String FindFromProgramFiles(String partialPath)
386
386
String programFiles = Environment . GetEnvironmentVariable ( "ProgramFiles" ) ;
387
387
String toolPath = Path . Combine ( programFiles , partialPath ) ;
388
388
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?
390
390
{
391
- toolPath = Path . Combine ( programFiles . Replace ( " Files (x86)" , " Files " ) , partialPath ) ;
391
+ toolPath = Path . Combine ( programFiles . Replace ( " (x86)" , "" ) , partialPath ) ;
392
392
if ( File . Exists ( toolPath ) ) return toolPath ;
393
393
}
394
394
return String . Empty ;
You can’t perform that action at this time.
0 commit comments