ntdll: Fix init_builtin_dll for FreeBSD again.

Commit e9cfc97d46

    Revert "ntdll: Add a Wine-specific class in NtQueryVirtualMemory
    to retrieve the init functions of a module."

    This reverts commits e5339ecbc6 and
    18408b18f3.

broke the build on FreeBSD.

Adjust the return value for FreeBSD as well.

Signed-off-by: Gerald Pfeifer <gerald@pfeifer.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Gerald Pfeifer 2021-09-22 18:58:33 +02:00 committed by Alexandre Julliard
parent 9f6e39e8b9
commit cac8c971a7
1 changed files with 1 additions and 1 deletions

View File

@ -2001,7 +2001,7 @@ static void CDECL init_builtin_dll( void *module )
/* On older FreeBSD versions, l_addr was the absolute load address, now it's the relocation offset. */ /* 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 (offsetof(struct link_map, l_addr) == 0)
if (!get_relocbase(map->l_addr, &relocbase)) if (!get_relocbase(map->l_addr, &relocbase))
return STATUS_NOT_SUPPORTED; return;
#endif #endif
switch (dyn->d_tag) switch (dyn->d_tag)
{ {