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>
This commit is contained in:
Alexandre Julliard 2021-08-02 15:57:08 +02:00
parent e145a06c46
commit 580ad3898b
2 changed files with 32 additions and 1 deletions

View File

@ -856,3 +856,32 @@ NTSTATUS WINAPI wow64_NtWriteFileGather( UINT *args )
put_iosb( io32, &io ); put_iosb( io32, &io );
return status; 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 );
}

View File

@ -233,6 +233,8 @@
SYSCALL_ENTRY( NtWriteFile ) \ SYSCALL_ENTRY( NtWriteFile ) \
SYSCALL_ENTRY( NtWriteFileGather ) \ SYSCALL_ENTRY( NtWriteFileGather ) \
SYSCALL_ENTRY( NtWriteVirtualMemory ) \ 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 */ #endif /* __WOW64_SYSCALL_H */