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
89ad6974
Commit
89ad6974
authored
Jul 23, 2021
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wow64: Add thunks for the symbolic link object syscalls.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
0e374683
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
64 additions
and
0 deletions
+64
-0
sync.c
dlls/wow64/sync.c
+61
-0
syscall.h
dlls/wow64/syscall.h
+3
-0
No files found.
dlls/wow64/sync.c
View file @
89ad6974
...
...
@@ -224,6 +224,29 @@ NTSTATUS WINAPI wow64_NtCreateSemaphore( UINT *args )
/**********************************************************************
* wow64_NtCreateSymbolicLinkObject
*/
NTSTATUS
WINAPI
wow64_NtCreateSymbolicLinkObject
(
UINT
*
args
)
{
ULONG
*
handle_ptr
=
get_ptr
(
&
args
);
ACCESS_MASK
access
=
get_ulong
(
&
args
);
OBJECT_ATTRIBUTES32
*
attr32
=
get_ptr
(
&
args
);
UNICODE_STRING32
*
target32
=
get_ptr
(
&
args
);
struct
object_attr64
attr
;
UNICODE_STRING
target
;
HANDLE
handle
=
0
;
NTSTATUS
status
;
*
handle_ptr
=
0
;
status
=
NtCreateSymbolicLinkObject
(
&
handle
,
access
,
objattr_32to64
(
&
attr
,
attr32
),
unicode_str_32to64
(
&
target
,
target32
));
put_handle
(
handle_ptr
,
handle
);
return
status
;
}
/**********************************************************************
* wow64_NtCreateTimer
*/
NTSTATUS
WINAPI
wow64_NtCreateTimer
(
UINT
*
args
)
...
...
@@ -400,6 +423,26 @@ NTSTATUS WINAPI wow64_NtOpenSemaphore( UINT *args )
/**********************************************************************
* wow64_NtOpenSymbolicLinkObject
*/
NTSTATUS
WINAPI
wow64_NtOpenSymbolicLinkObject
(
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
=
NtOpenSymbolicLinkObject
(
&
handle
,
access
,
objattr_32to64
(
&
attr
,
attr32
));
put_handle
(
handle_ptr
,
handle
);
return
status
;
}
/**********************************************************************
* wow64_NtOpenTimer
*/
NTSTATUS
WINAPI
wow64_NtOpenTimer
(
UINT
*
args
)
...
...
@@ -529,6 +572,24 @@ NTSTATUS WINAPI wow64_NtQuerySemaphore( UINT *args )
/**********************************************************************
* wow64_NtQuerySymbolicLinkObject
*/
NTSTATUS
WINAPI
wow64_NtQuerySymbolicLinkObject
(
UINT
*
args
)
{
HANDLE
handle
=
get_handle
(
&
args
);
UNICODE_STRING32
*
target32
=
get_ptr
(
&
args
);
ULONG
*
retlen
=
get_ptr
(
&
args
);
UNICODE_STRING
target
;
NTSTATUS
status
;
status
=
NtQuerySymbolicLinkObject
(
handle
,
unicode_str_32to64
(
&
target
,
target32
),
retlen
);
if
(
!
status
)
target32
->
Length
=
target
.
Length
;
return
status
;
}
/**********************************************************************
* wow64_NtQueryTimer
*/
NTSTATUS
WINAPI
wow64_NtQueryTimer
(
UINT
*
args
)
...
...
dlls/wow64/syscall.h
View file @
89ad6974
...
...
@@ -36,6 +36,7 @@
SYSCALL_ENTRY( NtCreateKeyedEvent ) \
SYSCALL_ENTRY( NtCreateMutant ) \
SYSCALL_ENTRY( NtCreateSemaphore ) \
SYSCALL_ENTRY( NtCreateSymbolicLinkObject ) \
SYSCALL_ENTRY( NtCreateTimer ) \
SYSCALL_ENTRY( NtDebugContinue ) \
SYSCALL_ENTRY( NtDeleteAtom ) \
...
...
@@ -48,6 +49,7 @@
SYSCALL_ENTRY( NtOpenKeyedEvent ) \
SYSCALL_ENTRY( NtOpenMutant ) \
SYSCALL_ENTRY( NtOpenSemaphore ) \
SYSCALL_ENTRY( NtOpenSymbolicLinkObject ) \
SYSCALL_ENTRY( NtOpenTimer ) \
SYSCALL_ENTRY( NtPulseEvent ) \
SYSCALL_ENTRY( NtQueryDefaultLocale ) \
...
...
@@ -59,6 +61,7 @@
SYSCALL_ENTRY( NtQueryIoCompletion ) \
SYSCALL_ENTRY( NtQueryMutant ) \
SYSCALL_ENTRY( NtQuerySemaphore ) \
SYSCALL_ENTRY( NtQuerySymbolicLinkObject ) \
SYSCALL_ENTRY( NtQueryTimer ) \
SYSCALL_ENTRY( NtReleaseKeyedEvent ) \
SYSCALL_ENTRY( NtReleaseMutant ) \
...
...
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