fix common incorrect executable detection

This commit is contained in:
pointfeev 2023-06-03 18:21:42 -04:00
parent 3522488392
commit 662a5a164b

View file

@ -522,7 +522,7 @@ internal static class Resources
private static bool IsCommonIncorrectExecutable(this string rootDirectory, string path)
{
string subPath = path[rootDirectory.Length..].ResolvePath();
string subPath = path[rootDirectory.Length..].ResolvePath()?.ToUpperInvariant();
return subPath is null || subPath.Contains("SETUP") || subPath.Contains("REDIST") || subPath.Contains("SUPPORT")
|| subPath.Contains("CRASH") && (subPath.Contains("PAD") || subPath.Contains("REPORT")) || subPath.Contains("HELPER")
|| subPath.Contains("CEFPROCESS") || subPath.Contains("ZFGAMEBROWSER") || subPath.Contains("MONO") || subPath.Contains("PLUGINS")