mirror of
https://github.com/SabreTools/BinaryObjectScanner.git
synced 2026-07-16 13:55:02 +00:00
A little cleanup
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user