Alexandre Julliard : wow64: Add thunks for the Unix library syscalls.

Alexandre Julliard julliard at winehq.org
Tue Aug 10 16:24:08 CDT 2021


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

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Tue Aug 10 18:09:33 2021 +0200

wow64: Add thunks for the Unix library syscalls.

Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/wow64/syscall.c | 13 +++++++++++++
 dlls/wow64/syscall.h |  1 +
 dlls/wow64/virtual.c |  5 +++++
 3 files changed, 19 insertions(+)

diff --git a/dlls/wow64/syscall.c b/dlls/wow64/syscall.c
index 6ae3cc13861..bdd9a6b6ea7 100644
--- a/dlls/wow64/syscall.c
+++ b/dlls/wow64/syscall.c
@@ -262,6 +262,19 @@ NTSTATUS WINAPI wow64___wine_dbg_write( UINT *args )
 }
 
 
+/**********************************************************************
+ *           wow64___wine_unix_call
+ */
+NTSTATUS WINAPI wow64___wine_unix_call( UINT *args )
+{
+    unixlib_handle_t handle = get_ulong64( &args );
+    unsigned int code = get_ulong( &args );
+    void *args_ptr = get_ptr( &args );
+
+    return __wine_unix_call( handle, code, args_ptr );
+}
+
+
 /**********************************************************************
  *           wow64_wine_server_call
  */
diff --git a/dlls/wow64/syscall.h b/dlls/wow64/syscall.h
index 6ae43e0e8ef..2df0323b36f 100644
--- a/dlls/wow64/syscall.h
+++ b/dlls/wow64/syscall.h
@@ -245,6 +245,7 @@
     SYSCALL_ENTRY( NtWriteVirtualMemory ) \
     SYSCALL_ENTRY( NtYieldExecution ) \
     SYSCALL_ENTRY( __wine_dbg_write ) \
+    SYSCALL_ENTRY( __wine_unix_call ) \
     SYSCALL_ENTRY( wine_nt_to_unix_file_name ) \
     SYSCALL_ENTRY( wine_server_call ) \
     SYSCALL_ENTRY( wine_server_fd_to_handle ) \
diff --git a/dlls/wow64/virtual.c b/dlls/wow64/virtual.c
index 9659557b64a..b4aabb13c7d 100644
--- a/dlls/wow64/virtual.c
+++ b/dlls/wow64/virtual.c
@@ -364,8 +364,13 @@ NTSTATUS WINAPI wow64_NtQueryVirtualMemory( UINT *args )
     }
 
     case MemoryWineImageInitFuncs:
+    case MemoryWineUnixWow64Funcs:
         return STATUS_INVALID_INFO_CLASS;
 
+    case MemoryWineUnixFuncs:
+        status = NtQueryVirtualMemory( handle, addr, MemoryWineUnixWow64Funcs, ptr, len, &res_len );
+        break;
+
     default:
         FIXME( "unsupported class %u\n", class );
         return STATUS_INVALID_INFO_CLASS;




More information about the wine-cvs mailing list