| 25 | static void* gLoadedTMessageLibHandle = nullptr; |
| 26 | |
| 27 | void handleLoadLibrary(const char* name, void* handle) { |
| 28 | if (name == nullptr || handle == nullptr) { |
| 29 | return; |
| 30 | } |
| 31 | std::string tmpName(name); |
| 32 | std::string soname = tmpName.substr(tmpName.find_last_of('/') == std::string::npos ? |
| 33 | 0 : tmpName.find_last_of('/') + 1); |
| 34 | if (soname.find("libtmessages.") != std::string::npos) { |
| 35 | gLoadedTMessageLibHandle = handle; |
| 36 | } |
| 37 | } |
| 38 | |
| 39 | NativeOnModuleLoaded initNativeHook(const NativeAPIEntries *entries) { |
| 40 | nativeHookHandle.hookFunction = entries->hookFunc; |
nothing calls this directly
no outgoing calls
no test coverage detected