Module: wine Branch: master Commit: 1d0383e2a41623d711a733899a80cb8fe1f6351a URL: https://gitlab.winehq.org/wine/wine/-/commit/1d0383e2a41623d711a733899a80cb8...
Author: Gerald Pfeifer gerald@pfeifer.com Date: Tue Nov 22 21:45:11 2022 +0100
ntdll: Make init_builtin_dll return a value on FreeBSD.
With commit 1d1690782b167f3ea24990c260665f71a0e70d1c init_builtin_dll gained a return value, alas the FreeBSD-specific code (under #ifdef) was not adjusted and still returned void.
---
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 f87e11f073c..deb25a8e35e 100644 --- a/dlls/ntdll/unix/loader.c +++ b/dlls/ntdll/unix/loader.c @@ -1919,7 +1919,7 @@ static NTSTATUS 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; + return STATUS_UNSUCCESSFUL; #endif switch (dyn->d_tag) {