DynamicLoader: Support dlopen(NULL, ...)

This commit is contained in:
Bananymous 2025-08-05 03:00:15 +03:00
parent f27823babe
commit 45ad6082bc
1 changed files with 3 additions and 0 deletions

View File

@ -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))
{