rdbo / libmem

Advanced Game Hacking Library for C, Modern C++, Rust and Python (Windows/Linux/FreeBSD) (Process/Memory Hacking) (Hooking/Detouring) (Cross Platform) (x86/x64/ARM/ARM64) (DLL/SO Injection) (Internal/External) (Assembler/Disassembler)
GNU Affero General Public License v3.0
764 stars 92 forks source link

Fix last module bug #103

Closed rdbo closed 1 year ago

rdbo commented 1 year ago

The LM_FindModuleCallback will not find the last module on BSD and probably on Linux as well

rdbo commented 1 year ago

From module.c:

/* if the module changes, run a callback and copy the new base and path */

If you're on the last module, it won't change, so it will never run a callback. Interesting. Maybe I could add an extra callback at the end of the function? Not sure though

rdbo commented 1 year ago

Done: 66fa6c200d7947ef7c72041a2f7520bd79973825