ntdll: Always return a value in get_builtin_init_funcs.

This only showed up in the #ifdef __FreeBSD__ case, so did not appear
on other platforms during testing.

Signed-off-by: Gerald Pfeifer <gerald@pfeifer.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Gerald Pfeifer 2021-08-19 01:36:39 +02:00 committed by Alexandre Julliard
parent b13c024d64
commit 6468e445bd
1 changed files with 2 additions and 1 deletions

View File

@ -1729,7 +1729,8 @@ NTSTATUS get_builtin_init_funcs( void *handle, void **funcs, SIZE_T len, SIZE_T
#ifdef __FreeBSD__
/* On older FreeBSD versions, l_addr was the absolute load address, now it's the relocation offset. */
if (offsetof(struct link_map, l_addr) == 0)
if (!get_relocbase(map->l_addr, &relocbase)) return;
if (!get_relocbase(map->l_addr, &relocbase))
return STATUS_NOT_SUPPORTED;
#endif
switch (dyn->d_tag)
{