[PATCH] ntdll: Fix init_builtin_dll for FreeBSD again
Gerald Pfeifer
gerald at pfeifer.com
Wed Sep 22 11:58:33 CDT 2021
Commit e9cfc97d46aaf39bc9c2a41b319d3b3b358c0f04
Revert "ntdll: Add a Wine-specific class in NtQueryVirtualMemory
to retrieve the init functions of a module."
This reverts commits e5339ecbc66f20193a0a6b1dfdce98d42d2ad926 and
18408b18f3ebd9630a02f0bd16864f5e5118b71a.
broke the build on FreeBSD.
Adjust the return value for FreeBSD as well.
Signed-off-by: Gerald Pfeifer <gerald at pfeifer.com>
---
dlls/ntdll/unix/loader.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/ntdll/unix/loader.c b/dlls/ntdll/unix/loader.c
index 6fbd112be01..5e39209eddc 100644
--- a/dlls/ntdll/unix/loader.c
+++ b/dlls/ntdll/unix/loader.c
@@ -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. */
if (offsetof(struct link_map, l_addr) == 0)
if (!get_relocbase(map->l_addr, &relocbase))
- return STATUS_NOT_SUPPORTED;
+ return;
#endif
switch (dyn->d_tag)
{
--
2.31.1
More information about the wine-devel
mailing list