From 3624ce5b3a2bd829c70a69251788679ea4684724 Mon Sep 17 00:00:00 2001 From: Ayman Bagabas Date: Mon, 13 May 2024 12:20:03 -0400 Subject: [PATCH] fix(windows): GetKeyboardLayout/ToUnicodeEx don't return errors --- windows/syscall_windows.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/windows/syscall_windows.go b/windows/syscall_windows.go index dd49431f..f57cbd9b 100644 --- a/windows/syscall_windows.go +++ b/windows/syscall_windows.go @@ -6,5 +6,5 @@ var NewLazySystemDLL = windows.NewLazySystemDLL type Handle = windows.Handle -//sys GetKeyboardLayout(threadId uint32) (hkl Handle, err error) = user32.GetKeyboardLayout -//sys ToUnicodeEx(vkey uint32, scancode uint32, keystate *byte, pwszBuff *uint16, cchBuff int32, flags uint32, hkl Handle) (ret int32, err error) = user32.ToUnicodeEx +//sys GetKeyboardLayout(threadId uint32) (hkl Handle) = user32.GetKeyboardLayout +//sys ToUnicodeEx(vkey uint32, scancode uint32, keystate *byte, pwszBuff *uint16, cchBuff int32, flags uint32, hkl Handle) (ret int32) = user32.ToUnicodeEx