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
8fed1c68
Commit
8fed1c68
authored
Aug 02, 2021
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wow64: Add a thunk for the wine_server_call() syscall.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
580ad389
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
46 additions
and
0 deletions
+46
-0
struct32.h
dlls/wow64/struct32.h
+20
-0
syscall.c
dlls/wow64/syscall.c
+25
-0
syscall.h
dlls/wow64/syscall.h
+1
-0
No files found.
dlls/wow64/struct32.h
View file @
8fed1c68
...
@@ -21,6 +21,8 @@
...
@@ -21,6 +21,8 @@
#ifndef __WOW64_STRUCT32_H
#ifndef __WOW64_STRUCT32_H
#define __WOW64_STRUCT32_H
#define __WOW64_STRUCT32_H
#include "wine/server.h"
typedef
struct
typedef
struct
{
{
ULONG
Length
;
ULONG
Length
;
...
@@ -633,4 +635,22 @@ typedef struct
...
@@ -633,4 +635,22 @@ typedef struct
SYSTEM_THREAD_INFORMATION32
ti
[
1
];
SYSTEM_THREAD_INFORMATION32
ti
[
1
];
}
SYSTEM_PROCESS_INFORMATION32
;
}
SYSTEM_PROCESS_INFORMATION32
;
struct
__server_iovec32
{
ULONG
ptr
;
data_size_t
size
;
};
struct
__server_request_info32
{
union
{
union
generic_request
req
;
union
generic_reply
reply
;
}
u
;
unsigned
int
data_count
;
ULONG
reply_data
;
struct
__server_iovec32
data
[
__SERVER_MAX_DATA
];
};
#endif
/* __WOW64_STRUCT32_H */
#endif
/* __WOW64_STRUCT32_H */
dlls/wow64/syscall.c
View file @
8fed1c68
...
@@ -243,6 +243,31 @@ NTSTATUS WINAPI wow64_NtSetDefaultUILanguage( UINT *args )
...
@@ -243,6 +243,31 @@ NTSTATUS WINAPI wow64_NtSetDefaultUILanguage( UINT *args )
/**********************************************************************
/**********************************************************************
* wow64_wine_server_call
*/
NTSTATUS
WINAPI
wow64_wine_server_call
(
UINT
*
args
)
{
struct
__server_request_info32
*
req32
=
get_ptr
(
&
args
);
unsigned
int
i
;
NTSTATUS
status
;
struct
__server_request_info
req
;
req
.
u
.
req
=
req32
->
u
.
req
;
req
.
data_count
=
req32
->
data_count
;
for
(
i
=
0
;
i
<
req
.
data_count
;
i
++
)
{
req
.
data
[
i
].
ptr
=
ULongToPtr
(
req32
->
data
[
i
].
ptr
);
req
.
data
[
i
].
size
=
req32
->
data
[
i
].
size
;
}
req
.
reply_data
=
ULongToPtr
(
req32
->
reply_data
);
status
=
wine_server_call
(
&
req
);
req32
->
u
.
reply
=
req
.
u
.
reply
;
return
status
;
}
/**********************************************************************
* get_syscall_num
* get_syscall_num
*/
*/
static
DWORD
get_syscall_num
(
const
BYTE
*
syscall
)
static
DWORD
get_syscall_num
(
const
BYTE
*
syscall
)
...
...
dlls/wow64/syscall.h
View file @
8fed1c68
...
@@ -235,6 +235,7 @@
...
@@ -235,6 +235,7 @@
SYSCALL_ENTRY( NtWriteVirtualMemory ) \
SYSCALL_ENTRY( NtWriteVirtualMemory ) \
SYSCALL_ENTRY( NtYieldExecution ) \
SYSCALL_ENTRY( NtYieldExecution ) \
SYSCALL_ENTRY( wine_nt_to_unix_file_name ) \
SYSCALL_ENTRY( wine_nt_to_unix_file_name ) \
SYSCALL_ENTRY( wine_server_call ) \
SYSCALL_ENTRY( wine_unix_to_nt_file_name )
SYSCALL_ENTRY( wine_unix_to_nt_file_name )
#endif
/* __WOW64_SYSCALL_H */
#endif
/* __WOW64_SYSCALL_H */
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