Fix GDC's Linux SIg offset checking (NPOTB).

This commit is contained in:
Ruben Gonzalez 2017-03-25 09:29:45 -04:00
parent 8e813109a2
commit 2db2af9343

View File

@ -571,7 +571,9 @@ void *GetLinuxSigPtr(void *handle, const char* symbol)
if (real_bytes >= 1)
{
return mu.FindPattern(handle, (char*)real_sig, real_bytes, matches, dummy);
struct link_map *dlmap = (struct link_map *)handle;
return mu.FindPattern((void *)dlmap->l_addr, (char*)real_sig, real_bytes, matches, dummy);
}
}