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
2b093118
Commit
2b093118
authored
Jul 23, 2021
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wow64: Add thunks for the mutant syscalls.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
8b8b92e1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
72 additions
and
0 deletions
+72
-0
sync.c
dlls/wow64/sync.c
+68
-0
syscall.h
dlls/wow64/syscall.h
+4
-0
No files found.
dlls/wow64/sync.c
View file @
2b093118
...
...
@@ -63,6 +63,27 @@ NTSTATUS WINAPI wow64_NtCreateEvent( UINT *args )
/**********************************************************************
* wow64_NtCreateMutant
*/
NTSTATUS
WINAPI
wow64_NtCreateMutant
(
UINT
*
args
)
{
ULONG
*
handle_ptr
=
get_ptr
(
&
args
);
ACCESS_MASK
access
=
get_ulong
(
&
args
);
OBJECT_ATTRIBUTES32
*
attr32
=
get_ptr
(
&
args
);
BOOLEAN
owned
=
get_ulong
(
&
args
);
struct
object_attr64
attr
;
HANDLE
handle
=
0
;
NTSTATUS
status
;
*
handle_ptr
=
0
;
status
=
NtCreateMutant
(
&
handle
,
access
,
objattr_32to64
(
&
attr
,
attr32
),
owned
);
put_handle
(
handle_ptr
,
handle
);
return
status
;
}
/**********************************************************************
* wow64_NtOpenEvent
*/
NTSTATUS
WINAPI
wow64_NtOpenEvent
(
UINT
*
args
)
...
...
@@ -83,6 +104,26 @@ NTSTATUS WINAPI wow64_NtOpenEvent( UINT *args )
/**********************************************************************
* wow64_NtOpenMutant
*/
NTSTATUS
WINAPI
wow64_NtOpenMutant
(
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
=
NtOpenMutant
(
&
handle
,
access
,
objattr_32to64
(
&
attr
,
attr32
));
put_handle
(
handle_ptr
,
handle
);
return
status
;
}
/**********************************************************************
* wow64_NtPulseEvent
*/
NTSTATUS
WINAPI
wow64_NtPulseEvent
(
UINT
*
args
)
...
...
@@ -110,6 +151,33 @@ NTSTATUS WINAPI wow64_NtQueryEvent( UINT *args )
/**********************************************************************
* wow64_NtQueryMutant
*/
NTSTATUS
WINAPI
wow64_NtQueryMutant
(
UINT
*
args
)
{
HANDLE
handle
=
get_handle
(
&
args
);
MUTANT_INFORMATION_CLASS
class
=
get_ulong
(
&
args
);
void
*
info
=
get_ptr
(
&
args
);
ULONG
len
=
get_ulong
(
&
args
);
ULONG
*
retlen
=
get_ptr
(
&
args
);
return
NtQueryMutant
(
handle
,
class
,
info
,
len
,
retlen
);
}
/**********************************************************************
* wow64_NtReleaseMutant
*/
NTSTATUS
WINAPI
wow64_NtReleaseMutant
(
UINT
*
args
)
{
HANDLE
handle
=
get_handle
(
&
args
);
LONG
*
prev_count
=
get_ptr
(
&
args
);
return
NtReleaseMutant
(
handle
,
prev_count
);
}
/**********************************************************************
* wow64_NtResetEvent
*/
NTSTATUS
WINAPI
wow64_NtResetEvent
(
UINT
*
args
)
...
...
dlls/wow64/syscall.h
View file @
2b093118
...
...
@@ -28,16 +28,20 @@
SYSCALL_ENTRY( NtClearEvent ) \
SYSCALL_ENTRY( NtClose ) \
SYSCALL_ENTRY( NtCreateEvent ) \
SYSCALL_ENTRY( NtCreateMutant ) \
SYSCALL_ENTRY( NtDeleteAtom ) \
SYSCALL_ENTRY( NtFindAtom ) \
SYSCALL_ENTRY( NtGetCurrentProcessorNumber ) \
SYSCALL_ENTRY( NtOpenEvent ) \
SYSCALL_ENTRY( NtOpenMutant ) \
SYSCALL_ENTRY( NtPulseEvent ) \
SYSCALL_ENTRY( NtQueryDefaultLocale ) \
SYSCALL_ENTRY( NtQueryDefaultUILanguage ) \
SYSCALL_ENTRY( NtQueryEvent ) \
SYSCALL_ENTRY( NtQueryInformationAtom ) \
SYSCALL_ENTRY( NtQueryInstallUILanguage ) \
SYSCALL_ENTRY( NtQueryMutant ) \
SYSCALL_ENTRY( NtReleaseMutant ) \
SYSCALL_ENTRY( NtResetEvent ) \
SYSCALL_ENTRY( NtSetDefaultLocale ) \
SYSCALL_ENTRY( NtSetDefaultUILanguage ) \
...
...
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