diff --git a/SabreTools.Serialization/Wrappers/PortableExecutable.cs b/SabreTools.Serialization/Wrappers/PortableExecutable.cs index fea31396..0dfe530a 100644 --- a/SabreTools.Serialization/Wrappers/PortableExecutable.cs +++ b/SabreTools.Serialization/Wrappers/PortableExecutable.cs @@ -1344,10 +1344,7 @@ namespace SabreTools.Serialization.Wrappers return -1; // Otherwise, find the section it exists within - return Model.OptionalHeader.AddressOfEntryPoint.ContainingSectionIndex(Model.SectionTable - .Where(sh => sh != null) - .Cast() - .ToArray()); + return Model.OptionalHeader.AddressOfEntryPoint.ContainingSectionIndex(Model.SectionTable); } ///