Alexandre Julliard : wow64win: Add missing thunk for NtUserGetKeyboardLayout().

Alexandre Julliard julliard at winehq.org
Wed Nov 17 16:27:59 CST 2021


Module: wine
Branch: master
Commit: 4138ef14fa844e98a876de42c1ca1827b7bb658a
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=4138ef14fa844e98a876de42c1ca1827b7bb658a

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Wed Nov 17 17:27:40 2021 +0100

wow64win: Add missing thunk for NtUserGetKeyboardLayout().

Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/wow64win/syscall.h | 1 +
 dlls/wow64win/user.c    | 7 +++++++
 2 files changed, 8 insertions(+)

diff --git a/dlls/wow64win/syscall.h b/dlls/wow64win/syscall.h
index 9a267025527..2ffe10b733c 100644
--- a/dlls/wow64win/syscall.h
+++ b/dlls/wow64win/syscall.h
@@ -99,6 +99,7 @@
     SYSCALL_ENTRY( NtUserGetClipboardSequenceNumber ) \
     SYSCALL_ENTRY( NtUserGetClipboardViewer ) \
     SYSCALL_ENTRY( NtUserGetKeyState ) \
+    SYSCALL_ENTRY( NtUserGetKeyboardLayout ) \
     SYSCALL_ENTRY( NtUserGetKeyboardState ) \
     SYSCALL_ENTRY( NtUserGetLayeredWindowAttributes ) \
     SYSCALL_ENTRY( NtUserGetMouseMovePointsEx ) \
diff --git a/dlls/wow64win/user.c b/dlls/wow64win/user.c
index 1c667889252..da94ea02dc0 100644
--- a/dlls/wow64win/user.c
+++ b/dlls/wow64win/user.c
@@ -250,6 +250,13 @@ NTSTATUS WINAPI wow64_NtUserGetKeyState( UINT *args )
     return NtUserGetKeyState( vkey );
 }
 
+NTSTATUS WINAPI wow64_NtUserGetKeyboardLayout( UINT *args )
+{
+    DWORD tid = get_ulong( &args );
+
+    return HandleToUlong( NtUserGetKeyboardLayout( tid ));
+}
+
 NTSTATUS WINAPI wow64_NtUserGetKeyboardState( UINT *args )
 {
     BYTE *state = get_ptr( &args );




More information about the wine-cvs mailing list