Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
0e374683
Commit
0e374683
authored
Jul 23, 2021
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wow64: Add thunks for the job object syscalls.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
0ae72a3c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
55 additions
and
0 deletions
+55
-0
sync.c
dlls/wow64/sync.c
+52
-0
syscall.h
dlls/wow64/syscall.h
+3
-0
No files found.
dlls/wow64/sync.c
View file @
0e374683
...
...
@@ -140,6 +140,26 @@ NTSTATUS WINAPI wow64_NtCreateIoCompletion( UINT *args )
/**********************************************************************
* wow64_NtCreateJobObject
*/
NTSTATUS
WINAPI
wow64_NtCreateJobObject
(
UINT
*
args
)
{
ULONG
*
handle_ptr
=
get_ptr
(
&
args
);
ACCESS_MASK
access
=
get_ulong
(
&
args
);
OBJECT_ATTRIBUTES32
*
attr32
=
get_ptr
(
&
args
);
struct
object_attr64
attr
;
HANDLE
handle
=
0
;
NTSTATUS
status
;
*
handle_ptr
=
0
;
status
=
NtCreateJobObject
(
&
handle
,
access
,
objattr_32to64
(
&
attr
,
attr32
));
put_handle
(
handle_ptr
,
handle
);
return
status
;
}
/**********************************************************************
* wow64_NtCreateKeyedEvent
*/
NTSTATUS
WINAPI
wow64_NtCreateKeyedEvent
(
UINT
*
args
)
...
...
@@ -300,6 +320,26 @@ NTSTATUS WINAPI wow64_NtOpenIoCompletion( UINT *args )
/**********************************************************************
* wow64_NtOpenJobObject
*/
NTSTATUS
WINAPI
wow64_NtOpenJobObject
(
UINT
*
args
)
{
ULONG
*
handle_ptr
=
get_ptr
(
&
args
);
ACCESS_MASK
access
=
get_ulong
(
&
args
);
OBJECT_ATTRIBUTES32
*
attr32
=
get_ptr
(
&
args
);
struct
object_attr64
attr
;
HANDLE
handle
=
0
;
NTSTATUS
status
;
*
handle_ptr
=
0
;
status
=
NtOpenJobObject
(
&
handle
,
access
,
objattr_32to64
(
&
attr
,
attr32
));
put_handle
(
handle_ptr
,
handle
);
return
status
;
}
/**********************************************************************
* wow64_NtOpenKeyedEvent
*/
NTSTATUS
WINAPI
wow64_NtOpenKeyedEvent
(
UINT
*
args
)
...
...
@@ -615,6 +655,18 @@ NTSTATUS WINAPI wow64_NtSetTimer( UINT *args )
/**********************************************************************
* wow64_NtTerminateJobObject
*/
NTSTATUS
WINAPI
wow64_NtTerminateJobObject
(
UINT
*
args
)
{
HANDLE
handle
=
get_handle
(
&
args
);
NTSTATUS
status
=
get_ulong
(
&
args
);
return
NtTerminateJobObject
(
handle
,
status
);
}
/**********************************************************************
* wow64_NtWaitForDebugEvent
*/
NTSTATUS
WINAPI
wow64_NtWaitForDebugEvent
(
UINT
*
args
)
...
...
dlls/wow64/syscall.h
View file @
0e374683
...
...
@@ -32,6 +32,7 @@
SYSCALL_ENTRY( NtCreateDirectoryObject ) \
SYSCALL_ENTRY( NtCreateEvent ) \
SYSCALL_ENTRY( NtCreateIoCompletion ) \
SYSCALL_ENTRY( NtCreateJobObject ) \
SYSCALL_ENTRY( NtCreateKeyedEvent ) \
SYSCALL_ENTRY( NtCreateMutant ) \
SYSCALL_ENTRY( NtCreateSemaphore ) \
...
...
@@ -43,6 +44,7 @@
SYSCALL_ENTRY( NtOpenDirectoryObject ) \
SYSCALL_ENTRY( NtOpenEvent ) \
SYSCALL_ENTRY( NtOpenIoCompletion ) \
SYSCALL_ENTRY( NtOpenJobObject ) \
SYSCALL_ENTRY( NtOpenKeyedEvent ) \
SYSCALL_ENTRY( NtOpenMutant ) \
SYSCALL_ENTRY( NtOpenSemaphore ) \
...
...
@@ -68,6 +70,7 @@
SYSCALL_ENTRY( NtSetInformationDebugObject ) \
SYSCALL_ENTRY( NtSetIoCompletion ) \
SYSCALL_ENTRY( NtSetTimer ) \
SYSCALL_ENTRY( NtTerminateJobObject ) \
SYSCALL_ENTRY( NtWaitForDebugEvent ) \
SYSCALL_ENTRY( NtWaitForKeyedEvent )
...
...
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