diff --git a/SebWindowsConfig/SEBSettings.cs b/SebWindowsConfig/SEBSettings.cs index 3a4c049f..de2a770a 100644 --- a/SebWindowsConfig/SEBSettings.cs +++ b/SebWindowsConfig/SEBSettings.cs @@ -1570,11 +1570,13 @@ namespace SebWindowsConfig { DictObj prohibitedProcessData = (DictObj)SEBSettings.prohibitedProcessList[listIndex]; - // Check if this prohibited process already is in Prohibited Process list in current settings - if (Path.GetFileNameWithoutExtension((string)prohibitedProcessData[SEBSettings.KeyOriginalName]).Equals(prohibitedProcessFilenameWithoutExtension, StringComparison.InvariantCultureIgnoreCase) || - Path.GetFileNameWithoutExtension((string)prohibitedProcessData[SEBSettings.KeyExecutable]).Equals(prohibitedProcessFilenameWithoutExtension, StringComparison.InvariantCultureIgnoreCase)) - indexOfProcess = listIndex; - + if ((int) prohibitedProcessData[SEBSettings.KeyOS] == IntWin) + { + // Check if this prohibited process already is in Prohibited Process list in current settings + if (Path.GetFileNameWithoutExtension((string)prohibitedProcessData[SEBSettings.KeyOriginalName]).Equals(prohibitedProcessFilenameWithoutExtension, StringComparison.InvariantCultureIgnoreCase) || + Path.GetFileNameWithoutExtension((string)prohibitedProcessData[SEBSettings.KeyExecutable]).Equals(prohibitedProcessFilenameWithoutExtension, StringComparison.InvariantCultureIgnoreCase)) + indexOfProcess = listIndex; + } } // next listIndex // If this default prohibited process was not in Prohibited Process list, insert it at the beginning