http://bugs.winehq.org/show_bug.cgi?id=21307
--- Comment #5 from Alex cerebro.alexiel@gmail.com 2010-01-15 12:29:20 --- Created an attachment (id=25742) --> (http://bugs.winehq.org/attachment.cgi?id=25742) A simple testcase
I did WINEDEBUG=+relay wine idag.exe > relay.log 2>&1 and found this 0009:Call user32.VkKeyScanA(00000023) ret=00442274 0009:Ret user32.VkKeyScanA() retval=0000ffff ret=00442274 <blabla> 0009:Call user32.DrawTextA(000005cc,00c75594 "Keyboard layout error:\nFailed to get the scan code of '#'\n(VkKeyScan failure)",0000004d,0032d2cd,00000440) ret=400c8610
So VkKeyScanA('#') fails as described in the message.
Compiling the testcase on windows (XP, cygwin, gcc) gives VkKeyScanA('#') :: 1587
IsDBCSLeadByte('#') :: 0 cChar # Wchar # VkKeyScanExW() :: 1587
and on my system (KUbuntu, winegcc) : VkKeyScanA('#') :: -1
IsDBCSLeadByte('#') :: 0 cChar # Wchar # VkKeyScanExW() :: 65535
So USER_Driver->pVkKeyScanEx(cChar, dwhkl) fails.