A little cleanup

This commit is contained in:
Matt Nadareski
2021-03-02 15:21:14 -08:00
parent 633fe23b80
commit 56b234bc96
2 changed files with 2 additions and 5 deletions

View File

@@ -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;
}
/// <summary>

View File

@@ -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))