Address review findings for thread control and process discovery
- Drop the false WOW64 claim from GetContext32/SetContext32 docs and guard them for 32-bit targets only.\n- Make FrozenThread dispose the thread handles it owns; make Freeze(predicate) dispose filtered-out threads.\n- Pass the already-validated handle through GetThreadById instead of opening a second one.\n- Add no-progress guard to MemoryBase.EnumerateRegions.\n- Dispose unmatched Process candidates in ApplicationFinder.OpenProcess.\n- Clean up RemoteThreadExecutor allocation formatting.
This commit is contained in:
@@ -308,7 +308,11 @@ public abstract class MemoryBase : IDisposable
|
||||
yield break;
|
||||
|
||||
yield return new MemoryRegion(info);
|
||||
address = info.BaseAddress + (nint)info.RegionSize;
|
||||
IntPtr next = info.BaseAddress + (nint)info.RegionSize;
|
||||
if (next.ToInt64() <= address.ToInt64())
|
||||
yield break;
|
||||
|
||||
address = next;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user