Alexandre Julliard : wow64: Add a wrapper for NtInitializeNlsFiles().
Alexandre Julliard
julliard at winehq.org
Mon Mar 21 17:20:25 CDT 2022
Module: wine
Branch: master
Commit: 4258f98244f21cb80a588c4ebaaff738ec9b01f6
URL: https://source.winehq.org/git/wine.git/?a=commit;h=4258f98244f21cb80a588c4ebaaff738ec9b01f6
Author: Alexandre Julliard <julliard at winehq.org>
Date: Mon Mar 21 11:51:41 2022 +0100
wow64: Add a wrapper for NtInitializeNlsFiles().
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/wow64/syscall.h | 1 +
dlls/wow64/virtual.c | 18 ++++++++++++++++++
2 files changed, 19 insertions(+)
diff --git a/dlls/wow64/syscall.h b/dlls/wow64/syscall.h
index 0c2ba574031..a3af9174c49 100644
--- a/dlls/wow64/syscall.h
+++ b/dlls/wow64/syscall.h
@@ -97,6 +97,7 @@
SYSCALL_ENTRY( NtGetNlsSectionPtr ) \
SYSCALL_ENTRY( NtGetWriteWatch ) \
SYSCALL_ENTRY( NtImpersonateAnonymousToken ) \
+ SYSCALL_ENTRY( NtInitializeNlsFiles ) \
SYSCALL_ENTRY( NtInitiatePowerAction ) \
SYSCALL_ENTRY( NtIsProcessInJob ) \
SYSCALL_ENTRY( NtListenPort ) \
diff --git a/dlls/wow64/virtual.c b/dlls/wow64/virtual.c
index fc470c07923..e89373f4239 100644
--- a/dlls/wow64/virtual.c
+++ b/dlls/wow64/virtual.c
@@ -208,6 +208,24 @@ NTSTATUS WINAPI wow64_NtGetWriteWatch( UINT *args )
}
+/**********************************************************************
+ * wow64_NtInitializeNlsFiles
+ */
+NTSTATUS WINAPI wow64_NtInitializeNlsFiles( UINT *args )
+{
+ ULONG *addr32 = get_ptr( &args );
+ LCID *lcid = get_ptr( &args );
+ LARGE_INTEGER *size = get_ptr( &args );
+
+ void *addr;
+ NTSTATUS status;
+
+ status = NtInitializeNlsFiles( addr_32to64( &addr, addr32 ), lcid, size );
+ if (!status) put_addr( addr32, addr );
+ return status;
+}
+
+
/**********************************************************************
* wow64_NtLockVirtualMemory
*/
More information about the wine-cvs
mailing list