Huw Davies : ntdll: Return a failure if the unix call funcs don't exist.

Alexandre Julliard julliard at winehq.org
Fri Oct 8 14:12:26 CDT 2021


Module: wine
Branch: master
Commit: 5689ec7bbaecaefde3f7cce9f3408ad607fc3375
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=5689ec7bbaecaefde3f7cce9f3408ad607fc3375

Author: Huw Davies <huw at 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 at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at 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 );




More information about the wine-cvs mailing list