Skip to content

Commit 2cd8460

Browse files
committed
Fixed scanner skipping sections.
1 parent 531ce5b commit 2cd8460

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎ReClass.NET/MemoryScanner/Scanner.cs‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,9 @@ private IList<Section> GetSearchableSections()
112112

113113
return process.Sections
114114
.Where(s => !s.Protection.HasFlag(SectionProtection.Guard))
115-
.Where(s => s.Start.InRange(Settings.StartAddress, Settings.StopAddress))
115+
.Where(s => s.Start.InRange(Settings.StartAddress, Settings.StopAddress)
116+
|| Settings.StartAddress.InRange(s.Start, s.End)
117+
|| Settings.StopAddress.InRange(s.Start, s.End))
116118
.Where(s =>
117119
{
118120
switch (s.Type)

0 commit comments

Comments
 (0)