get memory map without finding our pid first

This commit is contained in:
Jan 2021-01-06 22:21:32 +01:00 committed by TotallyNotElite
parent 63602affbc
commit 45ab30810c

View File

@ -12,7 +12,7 @@ namespace sharedobj
bool LocateSharedObject(std::string &name, std::string &out_full_path)
{
FILE *proc_maps = fopen(strfmt("/proc/%i/maps", getpid()).get(), "r");
FILE *proc_maps = fopen("/proc/self/maps", "r");
if (proc_maps == nullptr)
{
return false;