Commit 456e7618 authored by Alexandre Julliard's avatar Alexandre Julliard

ntdll: Don't return a default Unix handle for modules that don't have a Unix library.

parent 06742814
...@@ -655,8 +655,11 @@ static NTSTATUS get_builtin_unix_funcs( void *module, BOOL wow, void **funcs ) ...@@ -655,8 +655,11 @@ static NTSTATUS get_builtin_unix_funcs( void *module, BOOL wow, void **funcs )
LIST_FOR_EACH_ENTRY( builtin, &builtin_modules, struct builtin_module, entry ) LIST_FOR_EACH_ENTRY( builtin, &builtin_modules, struct builtin_module, entry )
{ {
if (builtin->module != module) continue; if (builtin->module != module) continue;
if (builtin->unix_handle)
{
*funcs = dlsym( builtin->unix_handle, ptr_name ); *funcs = dlsym( builtin->unix_handle, ptr_name );
status = *funcs ? STATUS_SUCCESS : STATUS_ENTRYPOINT_NOT_FOUND; status = *funcs ? STATUS_SUCCESS : STATUS_ENTRYPOINT_NOT_FOUND;
}
break; break;
} }
server_leave_uninterrupted_section( &virtual_mutex, &sigset ); server_leave_uninterrupted_section( &virtual_mutex, &sigset );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment