[Bug 28170] New: "Text Service and Input Languages" crash: Unimplemented function USER32.dll.LoadKeyboardLayoutEx called
http://bugs.winehq.org/show_bug.cgi?id=28170 Summary: "Text Service and Input Languages" crash: Unimplemented function USER32.dll.LoadKeyboardLayoutEx called Product: Wine Version: 1.3.26 Platform: x86 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown AssignedTo: wine-bugs(a)winehq.org ReportedBy: fracting(a)gmail.com Created an attachment (id=36090) --> (http://bugs.winehq.org/attachment.cgi?id=36090) Log: unimplemented function USER32.dll.LoadKeyboardLayoutEx 1. copy native input.dll, sptip.dll, and sapi.dll 2. regsvr32 sptip.dll for class {dcbd6fa8-032f-11d3-b5b1-00c04fc324a1}, regsvr32 sapi.dll for class {a910187f-0c7a-45ac-92cc-59edafb77b53} 3. import keyboard_layouts.reg with regedit, which is download from http://www.geekstogo.com/forum/index.php?app=core&module=attach§ion=atta... ( referer url: http://www.geekstogo.com/forum/topic/222396-cant-change-language-settings-fo... ) 4. start the "Text Service and Input Languages" : $ wine control input.dll (notes: without step 3, there will be an "incompatible keyboard driver detected" error, and the input.dll control panel can not display complete, I'm not sure if it this a wine bug) 5. click ok, then crash: fixme:msvcrt:_setmbcp trail bytes data not available for DBCS codepage 0 - assuming all bytes fixme:msctf:InputProcessorProfiles_GetLanguageList Semi-STUB:(0x13afd0) wine: Call from 0x7bc4c896 to unimplemented function USER32.dll.LoadKeyboardLayoutEx, aborting -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=28170 fracting <fracting(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|-unknown |user32 -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=28170 --- Comment #1 from fracting <fracting(a)gmail.com> 2011-08-24 07:56:35 CDT --- here is the minimal regedit file to avoid "incompatible keyboard driver detected" error, works for me with LANG=zh_CN.UTF-8 --- snip --- Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layouts] [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layouts\00000409] "Layout Display Name"="@C:\\Windows\\system32\\input.dll,-5000" "Layout File"="KBDUS.DLL" "Layout Text"="US" --- snip --- -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=28170 --- Comment #2 from Austin English <austinenglish(a)gmail.com> 2012-01-03 16:51:28 CST --- Created attachment 38247 --> http://bugs.winehq.org/attachment.cgi?id=38247 stub try this -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=28170 Austin English <austinenglish(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch CC| |austinenglish(a)gmail.com -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=28170 Dmitry Timoshkov <dmitry(a)baikal.ru> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 --- Comment #3 from Dmitry Timoshkov <dmitry(a)baikal.ru> 2012-01-03 22:12:14 CST --- (In reply to comment #2)
try this
+HKL WINAPI LoadKeyboardLayoutEx(DWORD unknown, LPCWSTR pwszKLID, UINT Flags) +{ + FIXME("stub! (%d, %s, %d)\n", unknown, debugstr_w(pwszKLID), Flags); + return FALSE; +}
1. Returning FALSE from an API supposed to return an HKL is wrong. 2. Why not simply forward it to a not Ex version, or better other way around? 3. It's not clear it this API should have both A and W versions and one of them (which one?) have a shortcut to this one. 4. Is there any reason that you think it has unicode arg(s)? 5. Once again using hungarian style in Wine is something strongly discouraged. 6. Usually flags (and unknowns) are printed in hex. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=28170 --- Comment #4 from Austin English <austinenglish(a)gmail.com> --- Still unimplemented. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=28170 Tom <a3732043(a)drdrb.net> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |a3732043(a)drdrb.net --- Comment #5 from Tom <a3732043(a)drdrb.net> --- Still missing. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=28170 --- Comment #6 from Austin English <austinenglish(a)gmail.com> --- Still unimplemented in 1.7.51. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=28170 Austin English <austinenglish(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #38247|0 |1 is obsolete| | --- Comment #7 from Austin English <austinenglish(a)gmail.com> --- Created attachment 53227 --> https://bugs.winehq.org/attachment.cgi?id=53227 stubs (try 2) -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=28170 acescopezz(a)gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |acescopezz(a)gmail.com --- Comment #8 from acescopezz(a)gmail.com --- Could someone review the patch and maybe resend it? -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=28170 Austin English <austinenglish(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|"Text Service and Input |"Text Service and Input |Languages" crash: |Languages" needs |Unimplemented function |unimplemented function |USER32.dll.LoadKeyboardLayo |USER32.dll.LoadKeyboardLayo |utEx called |utEx called -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=28170 Anastasius Focht <focht(a)gmx.net> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://bugs.winehq.org/sho | |w_bug.cgi?id=47439 -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=28170 Alistair Leslie-Hughes <leslie_alistair(a)hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #53227|0 |1 is patch| | -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=28170 Alistair Leslie-Hughes <leslie_alistair(a)hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |STAGED Staged patchset| |https://github.com/wine-sta | |ging/wine-staging/tree/mast | |er/patches/user32-LoadKeybo | |ardLayoutEx -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=28170 Vijay Kamuju <infyquest(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |infyquest(a)gmail.com --- Comment #9 from Vijay Kamuju <infyquest(a)gmail.com> --- I have checked the patch and resent with corrections. The first argument of the function is HKL (a handle to keyboard layout). Checked metasploit related documentation for function signature. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=28170 Vijay Kamuju <infyquest(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|STAGED |RESOLVED Resolution|--- |FIXED Fixed by SHA1| |a71223eed9c09733178012cb762 | |cbfef1ea86b7c --- Comment #10 from Vijay Kamuju <infyquest(a)gmail.com> --- Fix committed and now in main tree. https://source.winehq.org/git/wine.git/commit/a71223eed9c09733178012cb762cbf... -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=28170 Alexandre Julliard <julliard(a)winehq.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED --- Comment #11 from Alexandre Julliard <julliard(a)winehq.org> --- Closing bugs fixed in 9.6. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
participants (2)
-
wine-bugs@winehq.org -
WineHQ Bugzilla