From 56b234bc9641fd7d454048a180e0bf30c183d93e Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Tue, 2 Mar 2021 15:21:14 -0800 Subject: [PATCH] A little cleanup --- BurnOutSharp/EVORE.cs | 5 +---- BurnOutSharp/FileType/Executable.cs | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/BurnOutSharp/EVORE.cs b/BurnOutSharp/EVORE.cs index 65e4bdb0..982c35fc 100644 --- a/BurnOutSharp/EVORE.cs +++ b/BurnOutSharp/EVORE.cs @@ -37,10 +37,7 @@ namespace BurnOutSharp short Characteristics = BitConverter.ToInt16(fileContent, PEHeaderOffset + 22); // Check if file is dll - if ((Characteristics & 0x2000) == 0x2000) - return false; - else - return true; + return (Characteristics & 0x2000) != 0x2000; } /// diff --git a/BurnOutSharp/FileType/Executable.cs b/BurnOutSharp/FileType/Executable.cs index 55bffc2a..4aa3dd5b 100644 --- a/BurnOutSharp/FileType/Executable.cs +++ b/BurnOutSharp/FileType/Executable.cs @@ -90,7 +90,7 @@ namespace BurnOutSharp.FileType IContentCheck contentCheck = Activator.CreateInstance(contentCheckClass) as IContentCheck; string protection = contentCheck.CheckContents(file, fileContent, scanner.IncludePosition); - // If we have a valid cotnent check based on settings + // If we have a valid content check based on settings if (!contentCheckClass.Namespace.ToLowerInvariant().Contains("packertype") || scanner.ScanPackers) { if (!string.IsNullOrWhiteSpace(protection))