Dewera / Lunar

A lightweight native DLL mapping library that supports mapping directly from memory
MIT License
584 stars 102 forks source link

inject problem stuck #43

Closed zxcvqwerasdf closed 1 year ago

zxcvqwerasdf commented 1 year ago

Target: steam.exe (x86) dll: https://github.com/altoid29/VAC3_Dumper (x86) Xenos inject it's with no problem, but not Lunar.

image Stuck on 183 line in ProcessContext.cs Here is callstack: image I waited 5 minutes, but nothing happening, it's just stuck in InitialiseTlsData on

 if (Kernel32.WaitForSingleObject(threadHandle, int.MaxValue) == -1)
Dewera commented 1 year ago

Can't replicate locally but sounds like a resource lock issue (Microsoft sometimes changes what is and isn't locked by internal locks.) To verify could you comment out line 430 (using var pebLock = new PebLock(_processContext);) and try again?

zxcvqwerasdf commented 1 year ago

Yep, commented using var pebLock = new PebLock(_processContext) makes it works