Skip to content

Commit fc5dda0

Browse files
committed
windows: TestToUnicodeEx: always activate the layout
1 parent d949424 commit fc5dda0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

windows/syscall_windows_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1293,7 +1293,7 @@ func TestToUnicodeEx(t *testing.T) {
12931293
if err != nil {
12941294
t.Fatalf("UTF16PtrFromString failed: %v", err)
12951295
}
1296-
araLayout := windows.LoadKeyboardLayout(ara, 0)
1296+
araLayout := windows.LoadKeyboardLayout(ara, windows.KLF_ACTIVATE)
12971297
var keyState [256]byte
12981298
ret := windows.ToUnicodeEx(
12991299
0x41, // 'A' vkCode

0 commit comments

Comments
 (0)