Skip to content
Snippets Groups Projects
Commit 8347c686 authored by Alexandre Julliard's avatar Alexandre Julliard
Browse files

wow64: Add thunks for the Unix library syscalls.

parent 57281794
No related branches found
No related tags found
No related merge requests found
......@@ -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
*/
......
......@@ -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 ) \
......
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment