diff --git a/BinaryObjectScanner/Packer/Crunch.cs b/BinaryObjectScanner/Packer/Crunch.cs index b35756ea..c813569d 100644 --- a/BinaryObjectScanner/Packer/Crunch.cs +++ b/BinaryObjectScanner/Packer/Crunch.cs @@ -14,7 +14,7 @@ namespace BinaryObjectScanner.Packer // TODO: Investigate if this can be found by aligning to section containing entry point // Get the last section strings, if they exist - var sections = exe.SectionTable ?? []; + var sections = exe.SectionTable; var strs = exe.GetSectionStrings(sections.Length - 1); if (strs is not null) { diff --git a/BinaryObjectScanner/Protection/ProtectDISC.cs b/BinaryObjectScanner/Protection/ProtectDISC.cs index df898d1a..59fb03e1 100644 --- a/BinaryObjectScanner/Protection/ProtectDISC.cs +++ b/BinaryObjectScanner/Protection/ProtectDISC.cs @@ -65,7 +65,7 @@ namespace BinaryObjectScanner.Protection // TODO: Investigate if this can be found by aligning to section containing entry point // Get the 4th and 5th sections, if they exist (example names: ACE4/ACE5) (Found in Redump entries 94792, 94793) - var sections = exe.SectionTable ?? []; + var sections = exe.SectionTable; for (int i = 3; i < sections.Length; i++) { var nthSectionData = exe.GetSectionData(i); diff --git a/BinaryObjectScanner/Protection/SecuROM.cs b/BinaryObjectScanner/Protection/SecuROM.cs index 85f5f514..12f77260 100644 --- a/BinaryObjectScanner/Protection/SecuROM.cs +++ b/BinaryObjectScanner/Protection/SecuROM.cs @@ -292,7 +292,7 @@ namespace BinaryObjectScanner.Protection // TODO: Investigate if this can be found by aligning to section containing entry point // Get the sections 5+, if they exist (example names: .fmqyrx, .vcltz, .iywiak) - var sections = exe.SectionTable ?? []; + var sections = exe.SectionTable; for (int i = 4; i < sections.Length; i++) { var nthSection = sections[i]; diff --git a/BinaryObjectScanner/Protection/SmartE.cs b/BinaryObjectScanner/Protection/SmartE.cs index 00f026cc..91398cd7 100644 --- a/BinaryObjectScanner/Protection/SmartE.cs +++ b/BinaryObjectScanner/Protection/SmartE.cs @@ -19,7 +19,7 @@ namespace BinaryObjectScanner.Protection // TODO: Investigate if this can be found by aligning to section containing entry point - var sections = exe.SectionTable ?? []; + var sections = exe.SectionTable; if (sections.Length > 0) { // Get the last section data, if it exists diff --git a/BinaryObjectScanner/Protection/SolidShield.cs b/BinaryObjectScanner/Protection/SolidShield.cs index e666e6f3..67e9973e 100644 --- a/BinaryObjectScanner/Protection/SolidShield.cs +++ b/BinaryObjectScanner/Protection/SolidShield.cs @@ -85,7 +85,7 @@ namespace BinaryObjectScanner.Protection // TODO: Investigate if this can be found by aligning to section containing entry point // Search the last two available sections - var sections = exe.SectionTable ?? []; + var sections = exe.SectionTable; for (int i = Math.Max(sections.Length - 2, 0); i < sections.Length; i++) { // Get the nth section strings, if they exist