http://bugs.winehq.org/show_bug.cgi?id=28670
Bug #: 28670 Summary: GetKeyboardLayout(0) returns wrong HKL Product: Wine Version: 1.3.30 Platform: x86 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: user32 AssignedTo: wine-bugs@winehq.org ReportedBy: Sebastian.Riemer@gmx.de Classification: Unclassified
Created attachment 36849 --> http://bugs.winehq.org/attachment.cgi?id=36849 Patch for get_keyboard_layout_name() in dlls/user32/tests/input.c
I was improving a test in dlls/user32/input.c and while testing the test I've found out that GetKeyboardLayout(0) doesn't return the HKL of the currently set keyboard layout but instead the currently selected locale.
===Example=== WindowsXP: French language with German keyboard layout: HKL = 0x407040c wine 1.3.30: French language with German keyboard layout: HKL = 0x40c040c
The keyboard layout is in the high word and the locale in the low word. So, Windows XP reports correctly, that I have a German keyboard layout set but conversely wine 1.3.30 reports French, although "setxkbmap de nodeadkeys" is set.