Module: wine Branch: master Commit: 580ad3898be1dc4f69134218118d561fec35f210 URL: https://source.winehq.org/git/wine.git/?a=commit;h=580ad3898be1dc4f691342181...
Author: Alexandre Julliard julliard@winehq.org Date: Mon Aug 2 15:57:08 2021 +0200
wow64: Add thunks for the wine_nt_to_unix_file_name and wine_unix_to_nt_file_name syscalls.
Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/wow64/file.c | 29 +++++++++++++++++++++++++++++ dlls/wow64/syscall.h | 4 +++- 2 files changed, 32 insertions(+), 1 deletion(-)
diff --git a/dlls/wow64/file.c b/dlls/wow64/file.c index 05c8a97de0c..dab9827165f 100644 --- a/dlls/wow64/file.c +++ b/dlls/wow64/file.c @@ -856,3 +856,32 @@ NTSTATUS WINAPI wow64_NtWriteFileGather( UINT *args ) put_iosb( io32, &io ); return status; } + + +/********************************************************************** + * wow64_wine_nt_to_unix_file_name + */ +NTSTATUS WINAPI wow64_wine_nt_to_unix_file_name( UINT *args ) +{ + OBJECT_ATTRIBUTES32 *attr32 = get_ptr( &args ); + char *nameA = get_ptr( &args ); + ULONG *size = get_ptr( &args ); + UINT disposition = get_ulong( &args ); + + struct object_attr64 attr; + + return wine_nt_to_unix_file_name( objattr_32to64_redirect( &attr, attr32 ), nameA, size, disposition ); +} + + +/********************************************************************** + * wow64_wine_unix_to_nt_file_name + */ +NTSTATUS WINAPI wow64_wine_unix_to_nt_file_name( UINT *args ) +{ + const char *name = get_ptr( &args ); + WCHAR *buffer = get_ptr( &args ); + ULONG *size = get_ptr( &args ); + + return wine_unix_to_nt_file_name( name, buffer, size ); +} diff --git a/dlls/wow64/syscall.h b/dlls/wow64/syscall.h index 161acb83188..765456a8ab7 100644 --- a/dlls/wow64/syscall.h +++ b/dlls/wow64/syscall.h @@ -233,6 +233,8 @@ SYSCALL_ENTRY( NtWriteFile ) \ SYSCALL_ENTRY( NtWriteFileGather ) \ SYSCALL_ENTRY( NtWriteVirtualMemory ) \ - SYSCALL_ENTRY( NtYieldExecution ) + SYSCALL_ENTRY( NtYieldExecution ) \ + SYSCALL_ENTRY( wine_nt_to_unix_file_name ) \ + SYSCALL_ENTRY( wine_unix_to_nt_file_name )
#endif /* __WOW64_SYSCALL_H */