mirror of
https://gitea.tendokyu.moe/TeamTofuShop/capnhook.git
synced 2026-09-22 22:38:12 +03:00
f0e5f820288d33542dc222eb94f4b0221420dd4b
- If another DLL being loaded spawns a thread that begins doing I/O, then there is a race condition where `hook_table_apply` is still applying the hooks and has not returned yet but the hooked functions are called by those other threads. This causes the assert on `iohook_initted` to trigger. - The easy fix is to always enter the mutex to ensure the hooks have been applied and function addresses for `CreateFileW` and `SetFilePointerEx` have been resolved.
Languages
C
98.6%
Meson
1.4%