DynamicLoader: Support dlopen(NULL, ...)
This commit is contained in:
parent
f27823babe
commit
45ad6082bc
|
@ -1363,6 +1363,9 @@ void* __dlopen(const char* file, int mode)
|
|||
|
||||
// FIXME: RTLD_{LOCAL,GLOBAL}
|
||||
|
||||
if (file == nullptr)
|
||||
return &s_loaded_files[0];
|
||||
|
||||
char path_buffer[PATH_MAX];
|
||||
if (!find_library(file, path_buffer))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue