--------------------------------------------------------------------- PatchWindowsFunctions() This is the function that is exposed to the outside world. It should be called before the program becomes multi-threaded, since main_executable_windows.Patch() is not thread-safe. ---------------------------------------------------------------------
| 1036 | // since main_executable_windows.Patch() is not thread-safe. |
| 1037 | // --------------------------------------------------------------------- |
| 1038 | void PatchWindowsFunctions() { |
| 1039 | // This does the libc patching in every module, and the main executable. |
| 1040 | PatchAllModules(); |
| 1041 | main_executable_windows.Patch(); |
| 1042 | } |
| 1043 | |
| 1044 | #if 0 |
| 1045 | // It's possible to unpatch all the functions when we are exiting. |
no test coverage detected