Not sure if this is the way to go, but it is an idea that might make libmem simpler
Just adding a lm_tchar_t path[LM_PATH_MAX]; on the lm_module_t struct.
LM_PATH_MAX can be relatively big, like 4096 bytes, which is a bit too much to have allocated in the stack without necessity. Does not sound like a good idea to put it in the struct.
Not sure if this is the way to go, but it is an idea that might make libmem simpler Just adding a
lm_tchar_t path[LM_PATH_MAX];
on thelm_module_t
struct.