mirror of
https://github.com/FWGS/xash3d-fwgs
synced 2024-12-28 19:55:09 +01:00
platform/posix: check for non-zero dladdr ret
This commit is contained in:
parent
4f80922358
commit
e4edd2da45
@ -212,8 +212,8 @@ const char *COM_NameForFunction( void *hInstance, void *function )
|
||||
// NOTE: dladdr() is a glibc extension
|
||||
{
|
||||
Dl_info info = {0};
|
||||
dladdr( (void*)function, &info );
|
||||
if( info.dli_sname )
|
||||
int ret = dladdr( (void*)function, &info );
|
||||
if( ret && info.dli_sname )
|
||||
return COM_GetPlatformNeutralName( info.dli_sname );
|
||||
}
|
||||
#ifdef XASH_ALLOW_SAVERESTORE_OFFSETS
|
||||
|
Loading…
Reference in New Issue
Block a user