-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[PR #63] Crashes when attempting to hook LoadLibraryExW #70
Comments
There's also a recursion when hooking AcquireSRWLockExclusive, which, I don't know, probably nothing can be done about? void WINAPI CustomAcquireSRWLockExclusive(PSRWLOCK SRWLock)
{
return shAcquireSRWLockExclusive.stdcall<void>(SRWLock);
}
...
shAcquireSRWLockExclusive = safetyhook::create_inline(AcquireSRWLockExclusive, CustomAcquireSRWLockExclusive);
As for LoadLibraryExW crash, tried to repro, but couldn't. |
I might be able to code around this issue actually using a spinlock or something instead. |
I was able to repro with
|
Will update with more info. First glance looks like an exception occurs inside of trap_threads, causing a nested acquisition of the trap mutex.
The text was updated successfully, but these errors were encountered: