Huw Davies : ntdll: Return a failure if the unix call funcs don't exist.
Module: wine Branch: master Commit: 5689ec7bbaecaefde3f7cce9f3408ad607fc3375 URL: https://source.winehq.org/git/wine.git/?a=commit;h=5689ec7bbaecaefde3f7cce9f... Author: Huw Davies <huw(a)codeweavers.com> Date: Fri Oct 8 11:10:52 2021 +0100 ntdll: Return a failure if the unix call funcs don't exist. Signed-off-by: Huw Davies <huw(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/ntdll/unix/virtual.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/ntdll/unix/virtual.c b/dlls/ntdll/unix/virtual.c index 924aa78b306..6db08de6473 100644 --- a/dlls/ntdll/unix/virtual.c +++ b/dlls/ntdll/unix/virtual.c @@ -642,7 +642,7 @@ static NTSTATUS get_builtin_unix_funcs( void *module, BOOL wow, void **funcs ) { if (builtin->module != module) continue; *funcs = dlsym( builtin->unix_handle, ptr_name ); - status = STATUS_SUCCESS; + status = *funcs ? STATUS_SUCCESS : STATUS_ENTRYPOINT_NOT_FOUND; break; } server_leave_uninterrupted_section( &virtual_mutex, &sigset );
participants (1)
-
Alexandre Julliard