Fix thread namespace collision and tighten executable stub allocation

Fully qualifies System.Threading.Thread in DllInjector after introducing the WhiteMagic.Thread namespace, and replaces the broken+too-small near-allocation loop with a symmetric +/-2 GiB search so the x64 call stub always lands within rel32 range.
This commit is contained in:
kbe
2026-07-22 16:04:41 +02:00
parent 9aef9c21e3
commit 8f988768fe
3 changed files with 35 additions and 38 deletions
+1 -1
View File
@@ -383,7 +383,7 @@ public sealed class DllInjector
if (value != IntPtr.Zero)
return value;
Thread.Sleep(5);
System.Threading.Thread.Sleep(5);
}
return IntPtr.Zero;