Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
8347c686
Commit
8347c686
authored
Aug 10, 2021
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wow64: Add thunks for the Unix library syscalls.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
57281794
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
0 deletions
+19
-0
syscall.c
dlls/wow64/syscall.c
+13
-0
syscall.h
dlls/wow64/syscall.h
+1
-0
virtual.c
dlls/wow64/virtual.c
+5
-0
No files found.
dlls/wow64/syscall.c
View file @
8347c686
...
...
@@ -263,6 +263,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
*/
NTSTATUS
WINAPI
wow64_wine_server_call
(
UINT
*
args
)
...
...
dlls/wow64/syscall.h
View file @
8347c686
...
...
@@ -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 ) \
...
...
dlls/wow64/virtual.c
View file @
8347c686
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment