mirror of
https://github.com/sampletext32/ParkanPlayground.git
synced 2025-07-12 08:40:26 +03:00
Move section code checking logic from SectionHeaderParser to SectionHeader class
This commit is contained in:
@ -203,7 +203,7 @@ namespace X86Disassembler.PE
|
||||
|
||||
for (int i = 0; i < SectionHeaders.Count; i++)
|
||||
{
|
||||
if (_sectionHeaderParser.IsSectionContainsCode(SectionHeaders[i]))
|
||||
if (SectionHeaders[i].ContainsCode())
|
||||
{
|
||||
codeSections.Add(i);
|
||||
}
|
||||
@ -219,7 +219,7 @@ namespace X86Disassembler.PE
|
||||
/// <returns>True if the section contains code, false otherwise</returns>
|
||||
public bool IsSectionContainsCode(SectionHeader section)
|
||||
{
|
||||
return _sectionHeaderParser.IsSectionContainsCode(section);
|
||||
return section.ContainsCode();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user