diff --git a/BurnOutSharp/ProtectionType/WiseInstaller.cs b/BurnOutSharp/ProtectionType/WiseInstaller.cs index ed0162f4..aba389a3 100644 --- a/BurnOutSharp/ProtectionType/WiseInstaller.cs +++ b/BurnOutSharp/ProtectionType/WiseInstaller.cs @@ -13,10 +13,9 @@ namespace BurnOutSharp.ProtectionType byte[] check = new byte[] { 0x57, 0x69, 0x73, 0x65, 0x4D, 0x61, 0x69, 0x6E }; if (fileContent.Contains(check, out int position)) { - Dictionary> protections = new Dictionary> - { - [file ?? "NO FILENAME"] = new List { "Wise Installation Wizard Module" + (scanner.IncludePosition ? $" (Index {position})" : string.Empty) }, - }; + Dictionary> protections = new Dictionary>(); + if (scanner.ScanPackers) + protections[file ?? "NO FILENAME"] = new List { "Wise Installation Wizard Module" + (scanner.IncludePosition ? $" (Index {position})" : string.Empty) }; if (file == null || !File.Exists(file)) return protections;