Matt Bilker f0e5f82028 hook/iohook.c: Fix race condition at during iohook initialization
- 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.
2021-10-25 11:20:48 -04:00
2019-05-01 21:00:11 -04:00
2019-05-01 21:00:11 -04:00
2018-10-09 19:06:37 -04:00
2018-11-01 18:18:44 -04:00
2018-11-01 18:18:44 -04:00
2018-11-01 18:18:44 -04:00
2018-10-07 14:20:22 -04:00
2019-10-18 19:05:06 -04:00
2018-11-23 13:58:25 -05:00
S
Description
No description provided
MIT
199 KiB
Languages
C 98.6%
Meson 1.4%